diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-03-16 21:47:42 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-03-16 21:47:42 +0000 |
commit | 20931a798eff32eaefa1e5f7e4062996bc5cd220 (patch) | |
tree | 88b88fcf8bd8b8da49b4878c26ee2c49a2ad15f2 /llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | |
parent | 0b27047a6cf6e65663b4705f9d4f3a66f1069ee4 (diff) | |
download | bcm5719-llvm-20931a798eff32eaefa1e5f7e4062996bc5cd220.tar.gz bcm5719-llvm-20931a798eff32eaefa1e5f7e4062996bc5cd220.zip |
Added a way for TargetLowering to specify what values can be used as the
scale component of the target addressing mode.
llvm-svn: 26802
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp index 041eddfd1b1..8985a4364f8 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(1, &TLInfo)); + if (!Fast) PM.add(createLoopStrengthReducePass(&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(1, TM.getTargetLowering())); + PM.add(createLoopStrengthReducePass(TM.getTargetLowering())); // FIXME: Implement efficient support for garbage collection intrinsics. PM.add(createLowerGCPass()); |