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:
80df01d
)
enable the branch folding pass for the JIT.
author
Chris Lattner
<sabre@nondot.org>
Thu, 16 Nov 2006 01:00:07 +0000
(
01:00
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 16 Nov 2006 01:00:07 +0000
(
01:00
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31777
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 ae13625c20529382bad919dafa869dc69a2cbb9e..f113b16f2640319a7cb6c717ad76e1916db39595 100644
(file)
--- a/
lib/CodeGen/LLVMTargetMachine.cpp
+++ b/
lib/CodeGen/LLVMTargetMachine.cpp
@@
-147,6
+147,9
@@
bool LLVMTargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM,
if (PrintMachineCode) // Print the register-allocated code
PM.add(createMachineFunctionPrinterPass(&std::cerr));
+ // Branch folding must be run after regalloc and prolog/epilog insertion.
+ if (!Fast)
+ PM.add(createBranchFoldingPass());
if (addPreEmitPass(PM, Fast) && PrintMachineCode)
PM.add(createMachineFunctionPrinterPass(&std::cerr));