mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
If post-alloc scheduler is not enabled, it should return false, not true.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84248 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
931424a7d8
commit
c83da2f9e3
@ -234,12 +234,12 @@ bool PostRAScheduler::runOnMachineFunction(MachineFunction &Fn) {
|
|||||||
// Check for explicit enable/disable of post-ra scheduling.
|
// Check for explicit enable/disable of post-ra scheduling.
|
||||||
if (EnablePostRAScheduler.getPosition() > 0) {
|
if (EnablePostRAScheduler.getPosition() > 0) {
|
||||||
if (!EnablePostRAScheduler)
|
if (!EnablePostRAScheduler)
|
||||||
return true;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
// Check that post-RA scheduling is enabled for this function
|
// Check that post-RA scheduling is enabled for this target.
|
||||||
const TargetSubtarget &ST = Fn.getTarget().getSubtarget<TargetSubtarget>();
|
const TargetSubtarget &ST = Fn.getTarget().getSubtarget<TargetSubtarget>();
|
||||||
if (!ST.enablePostRAScheduler())
|
if (!ST.enablePostRAScheduler())
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(errs() << "PostRAScheduler\n");
|
DEBUG(errs() << "PostRAScheduler\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user