[llvm-commits] [llvm] r84248 - /llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp

Evan Cheng evan.cheng at apple.com
Thu Oct 15 23:10:37 PDT 2009


Author: evancheng
Date: Fri Oct 16 01:10:34 2009
New Revision: 84248

URL: http://llvm.org/viewvc/llvm-project?rev=84248&view=rev
Log:
If post-alloc scheduler is not enabled, it should return false, not true.

Modified:
    llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp

Modified: llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp?rev=84248&r1=84247&r2=84248&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp (original)
+++ llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp Fri Oct 16 01:10:34 2009
@@ -234,12 +234,12 @@
   // 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");





More information about the llvm-commits mailing list