diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-11-05 01:16:59 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-11-05 01:16:59 +0000 |
commit | 66549b2818bfa076307dbac39337f10573eab3f9 (patch) | |
tree | acd997cc587810916799e09c6fad5970ef1ac208 /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
parent | ba52f030521d499be9f3343122b0dffefe82ae5c (diff) | |
download | bcm5719-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.cpp | 6 |
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; } |