mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Revert "ARM: Enable MachineScheduler and disable PostRAScheduler for swift."
This reverts commit r242500. It broke some internal tests and Matthias asked me to revert it while he is investigating. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242553 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -319,19 +319,8 @@ bool ARMSubtarget::hasSinCos() const {
|
||||
return getTargetTriple().isiOS() && !getTargetTriple().isOSVersionLT(7, 0);
|
||||
}
|
||||
|
||||
bool ARMSubtarget::enableMachineScheduler() const {
|
||||
// Enable the MachineScheduler before register allocation for out-of-order
|
||||
// architectures where we do not use the PostRA scheduler anymore (for now
|
||||
// restricted to swift).
|
||||
return getSchedModel().isOutOfOrder() && isSwift();
|
||||
}
|
||||
|
||||
// This overrides the PostRAScheduler bit in the SchedModel for any CPU.
|
||||
bool ARMSubtarget::enablePostRAScheduler() const {
|
||||
// No need for PostRA scheduling on out of order CPUs (for now restricted to
|
||||
// swift).
|
||||
if (getSchedModel().isOutOfOrder() && isSwift())
|
||||
return false;
|
||||
return (!isThumb() || hasThumb2());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user