From 347ed4e83176ce56b2d247799078c79476715211 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. llvm-svn: 217712 --- llvm/lib/Target/AArch64/AArch64TargetMachine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp index 2206f4ab99f2..e83dd0dd3350 100644 --- a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp +++ b/llvm/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 {