[llvm-commits] CVS: llvm/lib/CodeGen/LLVMTargetMachine.cpp
Chris Lattner
sabre at nondot.org
Wed Nov 15 17:00:21 PST 2006
Changes in directory llvm/lib/CodeGen:
LLVMTargetMachine.cpp updated: 1.5 -> 1.6
---
Log message:
enable the branch folding pass for the JIT.
---
Diffs of the changes: (+3 -0)
LLVMTargetMachine.cpp | 3 +++
1 files changed, 3 insertions(+)
Index: llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff -u llvm/lib/CodeGen/LLVMTargetMachine.cpp:1.5 llvm/lib/CodeGen/LLVMTargetMachine.cpp:1.6
--- llvm/lib/CodeGen/LLVMTargetMachine.cpp:1.5 Tue Nov 7 13:33:46 2006
+++ llvm/lib/CodeGen/LLVMTargetMachine.cpp Wed Nov 15 19:00:07 2006
@@ -147,6 +147,9 @@
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));
More information about the llvm-commits
mailing list