summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-10-16 21:06:15 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-10-16 21:06:15 +0000
commit007ceb46039daf322651ab02c26fd8993bad2144 (patch)
tree925221a321dbcd5cec528f0a4404256314862b45 /llvm/lib/CodeGen/LLVMTargetMachine.cpp
parent5a2863856013abfc56fd884810567a7177917c2c (diff)
downloadbcm5719-llvm-007ceb46039daf322651ab02c26fd8993bad2144.tar.gz
bcm5719-llvm-007ceb46039daf322651ab02c26fd8993bad2144.zip
Change createPostRAScheduler so it can be turned off at llc -O1.
llvm-svn: 84273
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 4e713a6ed31..e58a9ca82c6 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -323,7 +323,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
// Second pass scheduler.
if (OptLevel != CodeGenOpt::None) {
- PM.add(createPostRAScheduler());
+ PM.add(createPostRAScheduler(OptLevel));
printAndVerify(PM);
}
OpenPOWER on IntegriCloud