[PATCH] D20186: Move the check of EnablePostRAScheduler to avoid side effect of disabling antidependency breaker

Mandeep Singh Grang via llvm-commits llvm-commits at lists.llvm.org
Wed May 11 16:08:00 PDT 2016


mgrang added a subscriber: mgrang.

================
Comment at: lib/CodeGen/PostRASchedulerList.cpp:296
@@ -290,11 +295,3 @@
   SmallVector<const TargetRegisterClass*, 4> CriticalPathRCs;
-  if (EnablePostRAScheduler.getPosition() > 0) {
-    if (!EnablePostRAScheduler)
-      return false;
-  } else {
-    // Check that post-RA scheduling is enabled for this target.
-    // This may upgrade the AntiDepMode.
-    if (!enablePostRAScheduler(Fn.getSubtarget(), PassConfig->getOptLevel(),
-                               AntiDepMode, CriticalPathRCs))
-      return false;
-  }
+
+  // Check that post-RA scheduling is enabled for this target.
----------------
You can get rid of the extra newline.


http://reviews.llvm.org/D20186





More information about the llvm-commits mailing list