[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetMachine.cpp
Evan Cheng
evan.cheng at apple.com
Sat Mar 18 22:09:01 PST 2006
Changes in directory llvm/lib/Target/X86:
X86TargetMachine.cpp updated: 1.108 -> 1.109
---
Log message:
Turning on LSR by default
---
Diffs of the changes: (+2 -6)
X86TargetMachine.cpp | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.108 llvm/lib/Target/X86/X86TargetMachine.cpp:1.109
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.108 Thu Mar 16 15:47:42 2006
+++ llvm/lib/Target/X86/X86TargetMachine.cpp Sun Mar 19 00:08:49 2006
@@ -38,9 +38,6 @@
cl::desc("Disable the X86 asm printer, for use "
"when profiling the code generator."));
- cl::opt<bool> EnableX86LSR("enable-x86-lsr", cl::Hidden,
- cl::desc("Enable the X86 loop strength reduction "
- "pass."));
// Register the target.
RegisterTarget<X86TargetMachine> X("x86", " IA-32 (Pentium and above)");
}
@@ -97,7 +94,7 @@
FileType != TargetMachine::ObjectFile) return true;
// Run loop strength reduction before anything else.
- if (EnableX86LSR) PM.add(createLoopStrengthReducePass(&TLInfo));
+ PM.add(createLoopStrengthReducePass(&TLInfo));
// FIXME: Implement efficient support for garbage collection intrinsics.
PM.add(createLowerGCPass());
@@ -165,8 +162,7 @@
TM.setRelocationModel(Reloc::Static);
// Run loop strength reduction before anything else.
- if (EnableX86LSR)
- PM.add(createLoopStrengthReducePass(TM.getTargetLowering()));
+ PM.add(createLoopStrengthReducePass(TM.getTargetLowering()));
// FIXME: Implement efficient support for garbage collection intrinsics.
PM.add(createLowerGCPass());
More information about the llvm-commits
mailing list