OSDN Git Service

[AArch64] Don't enable the post-RA MI scheduler at OptNone.
authorChad Rosier <mcrosier@codeaurora.org>
Fri, 12 Sep 2014 22:17:28 +0000 (22:17 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Fri, 12 Sep 2014 22:17:28 +0000 (22:17 +0000)
Hopefully, this will appease the bots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217712 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64TargetMachine.cpp

index 2206f4a..e83dd0d 100644 (file)
@@ -129,7 +129,8 @@ class AArch64PassConfig : public TargetPassConfig {
 public:
   AArch64PassConfig(AArch64TargetMachine *TM, PassManagerBase &PM)
       : TargetPassConfig(TM, PM) {
-    substitutePass(&PostRASchedulerID, &PostMachineSchedulerID);
+    if (TM->getOptLevel() != CodeGenOpt::None)
+      substitutePass(&PostRASchedulerID, &PostMachineSchedulerID);
   }
 
   AArch64TargetMachine &getAArch64TargetMachine() const {