summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-03-13 23:56:51 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-03-13 23:56:51 +0000
commit0f9d6534f51e11ba97c6bbd71dc906db7b32ecd0 (patch)
treed21ed430795854b82d6b17aa6c63c0f1dd4fb6d2 /llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
parent2dd2c652b21f9cbfd67d7524b80bb86c51130b90 (diff)
downloadbcm5719-llvm-0f9d6534f51e11ba97c6bbd71dc906db7b32ecd0.tar.gz
bcm5719-llvm-0f9d6534f51e11ba97c6bbd71dc906db7b32ecd0.zip
PPC LSR pass should use target lowering hooks.
llvm-svn: 26743
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetMachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
index 6fe41ea51ae..041eddfd1b1 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
@@ -84,7 +84,7 @@ bool PPCTargetMachine::addPassesToEmitFile(PassManager &PM,
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 @@ void PPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
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());
OpenPOWER on IntegriCloud