Changes in directory llvm/lib/CodeGen:

LLVMTargetMachine.cpp updated: 1.2 -> 1.3
---
Log message:

add the branch folding pass as a late cleanup pass for all targets.  For now
it just deletes empty MBB's.  Soon it will do more :)


---
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.2 
llvm/lib/CodeGen/LLVMTargetMachine.cpp:1.3
--- llvm/lib/CodeGen/LLVMTargetMachine.cpp:1.2  Mon Sep  4 01:21:35 2006
+++ llvm/lib/CodeGen/LLVMTargetMachine.cpp      Fri Oct 13 15:45:56 2006
@@ -63,6 +63,9 @@
   // Insert prolog/epilog code.  Eliminate abstract frame index references...
   PM.add(createPrologEpilogCodeInserter());
   
+  // Branch folding must be run after regalloc and prolog/epilog insertion.
+  PM.add(createBranchFoldingPass());
+  
   if (PrintMachineCode)  // Print the register-allocated code
     PM.add(createMachineFunctionPrinterPass(&std::cerr));
   



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to