aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/PostRASchedulerList.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-10-16 06:10:34 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-10-16 06:10:34 +0000
commit57796906e96fa68af19262323496e4b9c038a516 (patch)
treec91294a07f78a3ed3f8de6cd4c189eb0312c5ac9 /lib/CodeGen/PostRASchedulerList.cpp
parent722d96604ba2eed55fc01e166566935979f4739b (diff)
downloadexternal_llvm-57796906e96fa68af19262323496e4b9c038a516.tar.gz
external_llvm-57796906e96fa68af19262323496e4b9c038a516.tar.bz2
external_llvm-57796906e96fa68af19262323496e4b9c038a516.zip
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
Diffstat (limited to 'lib/CodeGen/PostRASchedulerList.cpp')
-rw-r--r--lib/CodeGen/PostRASchedulerList.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/PostRASchedulerList.cpp b/lib/CodeGen/PostRASchedulerList.cpp
index e52158cfeb..706f5f2df0 100644
--- a/lib/CodeGen/PostRASchedulerList.cpp
+++ b/lib/CodeGen/PostRASchedulerList.cpp
@@ -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");