mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
If post-alloc scheduler is not enabled, it should return false, not true.
llvm-svn: 84248
This commit is contained in:
parent
03d844a262
commit
dde3e4fe11
@ -234,12 +234,12 @@ bool PostRAScheduler::runOnMachineFunction(MachineFunction &Fn) {
|
||||
// Check for explicit enable/disable of post-ra scheduling.
|
||||
if (EnablePostRAScheduler.getPosition() > 0) {
|
||||
if (!EnablePostRAScheduler)
|
||||
return true;
|
||||
return false;
|
||||
} 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>();
|
||||
if (!ST.enablePostRAScheduler())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
DEBUG(errs() << "PostRAScheduler\n");
|
||||
|
Loading…
Reference in New Issue
Block a user