diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-03-13 23:56:51 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-03-13 23:56:51 +0000 |
commit | 9c543b2299b706c4ebc3fed6e5227e5930087ff8 (patch) | |
tree | 6f809526d97194fc2b7961fd3f57a4ee5e88bbd5 | |
parent | c4c6257c1a154279bf10e9498d46d6c1793dbaa7 (diff) | |
download | external_llvm-9c543b2299b706c4ebc3fed6e5227e5930087ff8.zip external_llvm-9c543b2299b706c4ebc3fed6e5227e5930087ff8.tar.gz external_llvm-9c543b2299b706c4ebc3fed6e5227e5930087ff8.tar.bz2 |
PPC LSR pass should use target lowering hooks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26743 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PowerPC/PPCTargetMachine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp index 6fe41ea..041eddf 100644 --- a/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/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()); |