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)); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits