diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-03-19 06:08:49 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-03-19 06:08:49 +0000 |
commit | 5fef51e9aa015e0936d6a6c93b71bb386be9c8f5 (patch) | |
tree | bf0f96992ca3d13a32dc2abf3d50dbfb891ad035 /lib/Target/X86/X86TargetMachine.cpp | |
parent | 0def9c3d7d0e25ec19b1513f68b7451276207947 (diff) |
Turning on LSR by default
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r-- | lib/Target/X86/X86TargetMachine.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 3d5a6f8ffe..ef603ea107 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -38,9 +38,6 @@ namespace { 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 @@ 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(&TLInfo)); + PM.add(createLoopStrengthReducePass(&TLInfo)); // FIXME: Implement efficient support for garbage collection intrinsics. PM.add(createLowerGCPass()); @@ -165,8 +162,7 @@ void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) { 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()); |