aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86TargetMachine.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-03-16 21:47:42 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-03-16 21:47:42 +0000
commit714554d70717c73e0542ca93df36fa78765f87af (patch)
tree19e23365fbd8f5341a24f7cdffec9ad0688cddfc /lib/Target/X86/X86TargetMachine.cpp
parent8aa777d5ea8e73e2edf79fd35fd6b5c4e9949ca7 (diff)
downloadexternal_llvm-714554d70717c73e0542ca93df36fa78765f87af.zip
external_llvm-714554d70717c73e0542ca93df36fa78765f87af.tar.gz
external_llvm-714554d70717c73e0542ca93df36fa78765f87af.tar.bz2
Added a way for TargetLowering to specify what values can be used as the
scale component of the target addressing mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r--lib/Target/X86/X86TargetMachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp
index 2de8cc0..3d5a6f8 100644
--- a/lib/Target/X86/X86TargetMachine.cpp
+++ b/lib/Target/X86/X86TargetMachine.cpp
@@ -97,7 +97,7 @@ bool X86TargetMachine::addPassesToEmitFile(PassManager &PM, std::ostream &Out,
FileType != TargetMachine::ObjectFile) return true;
// Run loop strength reduction before anything else.
- if (EnableX86LSR) PM.add(createLoopStrengthReducePass(1, &TLInfo));
+ if (EnableX86LSR) PM.add(createLoopStrengthReducePass(&TLInfo));
// FIXME: Implement efficient support for garbage collection intrinsics.
PM.add(createLowerGCPass());
@@ -166,7 +166,7 @@ void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
// Run loop strength reduction before anything else.
if (EnableX86LSR)
- PM.add(createLoopStrengthReducePass(1, TM.getTargetLowering()));
+ PM.add(createLoopStrengthReducePass(TM.getTargetLowering()));
// FIXME: Implement efficient support for garbage collection intrinsics.
PM.add(createLowerGCPass());