mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-28 21:18:16 +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:
File diff suppressed because it is too large
Load Diff
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -433,9 +433,6 @@ public:
|
||||
/// compiler runtime or math libraries.
|
||||
bool hasSinCos() const;
|
||||
|
||||
/// Returns true if machine scheduler should be enabled.
|
||||
bool enableMachineScheduler() const override;
|
||||
|
||||
/// True for some subtargets at > -O0.
|
||||
bool enablePostRAScheduler() const override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user