[AArch64] Don't enable the post-RA MI scheduler at OptNone.

Hopefully, this will appease the bots.

llvm-svn: 217712
This commit is contained in:
Chad Rosier 2014-09-12 22:17:28 +00:00
parent e68ca8d4ba
commit 347ed4e831
1 changed files with 2 additions and 1 deletions

View 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 {