From 995738064a18a46752dc1717d03f1549503dc727 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Fri, 12 Sep 2014 22:17:28 +0000 Subject: [PATCH] [AArch64] Don't enable the post-RA MI scheduler at OptNone. 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Target/AArch64/AArch64TargetMachine.cpp b/lib/Target/AArch64/AArch64TargetMachine.cpp index 2206f4ab99f..e83dd0dd335 100644 --- a/lib/Target/AArch64/AArch64TargetMachine.cpp +++ b/lib/Target/AArch64/AArch64TargetMachine.cpp @@ -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 {