aboutsummaryrefslogtreecommitdiffstats
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
commit517e2556e39973ae65f58fad9865eef3a5a0966b (patch)
treeb054f4cefe5c4edce9e2b34a0a460faf62f78f76
parent85b8de8118dcfc26902e312609a893c67d9c5fcf (diff)
downloadexternal_llvm-517e2556e39973ae65f58fad9865eef3a5a0966b.zip
external_llvm-517e2556e39973ae65f58fad9865eef3a5a0966b.tar.gz
external_llvm-517e2556e39973ae65f58fad9865eef3a5a0966b.tar.bz2
Now that code placement optimization pass is run for JIT, make sure it's before pre-emit passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86092 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/LLVMTargetMachine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index 6557315..0db459b 100644
--- a/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/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;
}