[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCTargetMachine.cpp

Evan Cheng evan.cheng at apple.com
Mon Mar 13 15:57:03 PST 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCTargetMachine.cpp updated: 1.82 -> 1.83
---
Log message:

PPC LSR pass should use target lowering hooks.

---
Diffs of the changes:  (+2 -2)

 PPCTargetMachine.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
diff -u llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:1.82 llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:1.83
--- llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:1.82	Mon Mar 13 17:20:37 2006
+++ llvm/lib/Target/PowerPC/PPCTargetMachine.cpp	Mon Mar 13 17:56:51 2006
@@ -84,7 +84,7 @@
   if (FileType != TargetMachine::AssemblyFile) return true;
   
   // Run loop strength reduction before anything else.
-  if (!Fast) PM.add(createLoopStrengthReducePass());
+  if (!Fast) PM.add(createLoopStrengthReducePass(1, &TLInfo));
 
   // FIXME: Implement efficient support for garbage collection intrinsics.
   PM.add(createLowerGCPass());
@@ -138,7 +138,7 @@
   TM.setRelocationModel(Reloc::DynamicNoPIC);
 
   // Run loop strength reduction before anything else.
-  PM.add(createLoopStrengthReducePass());
+  PM.add(createLoopStrengthReducePass(1, TM.getTargetLowering()));
 
   // FIXME: Implement efficient support for garbage collection intrinsics.
   PM.add(createLowerGCPass());






More information about the llvm-commits mailing list