projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85b8de8
)
Now that code placement optimization pass is run for JIT, make sure it's before pre...
author
Evan Cheng
<evan.cheng@apple.com>
Thu, 5 Nov 2009 01:16:59 +0000
(
01:16
+0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Thu, 5 Nov 2009 01:16:59 +0000
(
01:16
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86092
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/LLVMTargetMachine.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/LLVMTargetMachine.cpp
b/lib/CodeGen/LLVMTargetMachine.cpp
index 6557315d3f0a0dcea6d4ef84c2119b5b543148a1..0db459bb9163bbc11a2e3fb85e931a50d007ecec 100644
(file)
--- 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;
}