summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2014-09-12 22:17:28 +0000
committerChad Rosier <mcrosier@codeaurora.org>2014-09-12 22:17:28 +0000
commit347ed4e83176ce56b2d247799078c79476715211 (patch)
treeca83fb764fd819bd38da4b72efce366921e63a60
parente68ca8d4ba34fa42dac23b2fcabccce4aebd7e2a (diff)
downloadbcm5719-llvm-347ed4e83176ce56b2d247799078c79476715211.tar.gz
bcm5719-llvm-347ed4e83176ce56b2d247799078c79476715211.zip
[AArch64] Don't enable the post-RA MI scheduler at OptNone.
Hopefully, this will appease the bots. llvm-svn: 217712
-rw-r--r--llvm/lib/Target/AArch64/AArch64TargetMachine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
index 2206f4ab99f..e83dd0dd335 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 {
OpenPOWER on IntegriCloud