summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-11-05 01:16:59 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-11-05 01:16:59 +0000
commit66549b2818bfa076307dbac39337f10573eab3f9 (patch)
treeacd997cc587810916799e09c6fad5970ef1ac208 /llvm/lib/CodeGen/LLVMTargetMachine.cpp
parentba52f030521d499be9f3343122b0dffefe82ae5c (diff)
downloadbcm5719-llvm-66549b2818bfa076307dbac39337f10573eab3f9.tar.gz
bcm5719-llvm-66549b2818bfa076307dbac39337f10573eab3f9.zip
Now that code placement optimization pass is run for JIT, make sure it's before pre-emit passes.
llvm-svn: 86092
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 6557315d3f0..0db459bb916 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -342,13 +342,13 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
PM.add(createDebugLabelFoldingPass());
printAndVerify(PM, "After DebugLabelFolding");
- if (addPreEmitPass(PM, OptLevel))
- printAndVerify(PM, "After PreEmit passes");
-
if (OptLevel != CodeGenOpt::None && !DisableCodePlace) {
PM.add(createCodePlacementOptPass());
printAndVerify(PM, "After CodePlacementOpt");
}
+ if (addPreEmitPass(PM, OptLevel))
+ printAndVerify(PM, "After PreEmit passes");
+
return false;
}
OpenPOWER on IntegriCloud