[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Mar 2 13:56:16 PST 2005
Changes in directory llvm/lib/Target/PowerPC:
PowerPCTargetMachine.cpp updated: 1.45 -> 1.46
---
Log message:
cleanup the cfg after lsr
---
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.45 llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.46
--- llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.45 Wed Mar 2 00:19:22 2005
+++ llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp Wed Mar 2 15:56:00 2005
@@ -75,8 +75,10 @@
std::ostream &Out) {
bool LP64 = (0 != dynamic_cast<PPC64TargetMachine *>(this));
- if (EnablePPCLSR)
+ if (EnablePPCLSR) {
PM.add(createLoopStrengthReducePass());
+ PM.add(createCFGSimplificationPass());
+ }
// FIXME: Implement efficient support for garbage collection intrinsics.
PM.add(createLowerGCPass());
@@ -120,8 +122,10 @@
}
void PowerPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
- if (EnablePPCLSR)
+ if (EnablePPCLSR) {
PM.add(createLoopStrengthReducePass());
+ PM.add(createCFGSimplificationPass());
+ }
// FIXME: Implement efficient support for garbage collection intrinsics.
PM.add(createLowerGCPass());
More information about the llvm-commits
mailing list