[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Sep 26 17:14:53 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PowerPCTargetMachine.cpp updated: 1.67 -> 1.68
---
Log message:
Move the post-lsr simplify cfg pass after lowereh, so it can clean up after
eh lowering as well.
---
Diffs of the changes: (+6 -2)
PowerPCTargetMachine.cpp | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
diff -u llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.67 llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.68
--- llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.67 Fri Sep 2 14:53:54 2005
+++ llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp Mon Sep 26 19:14:41 2005
@@ -71,13 +71,15 @@
// Run loop strength reduction before anything else.
PM.add(createLoopStrengthReducePass());
- PM.add(createCFGSimplificationPass());
// FIXME: Implement efficient support for garbage collection intrinsics.
PM.add(createLowerGCPass());
// FIXME: Implement the invoke/unwind instructions!
PM.add(createLowerInvokePass());
+
+ // Clean up after other passes, e.g. merging critical edges.
+ PM.add(createCFGSimplificationPass());
// FIXME: Implement the switch instruction in the instruction selector!
PM.add(createLowerSwitchPass());
@@ -126,7 +128,6 @@
// Run loop strength reduction before anything else.
PM.add(createLoopStrengthReducePass());
- PM.add(createCFGSimplificationPass());
// FIXME: Implement efficient support for garbage collection intrinsics.
PM.add(createLowerGCPass());
@@ -134,6 +135,9 @@
// FIXME: Implement the invoke/unwind instructions!
PM.add(createLowerInvokePass());
+ // Clean up after other passes, e.g. merging critical edges.
+ PM.add(createCFGSimplificationPass());
+
// FIXME: Implement the switch instruction in the instruction selector!
PM.add(createLowerSwitchPass());
More information about the llvm-commits
mailing list