Turning on LSR by default

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26861 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng
2006-03-19 06:08:49 +00:00
parent 0def9c3d7d
commit 5fef51e9aa

View File

@@ -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,7 +162,6 @@ void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
TM.setRelocationModel(Reloc::Static);
// Run loop strength reduction before anything else.
if (EnableX86LSR)
PM.add(createLoopStrengthReducePass(TM.getTargetLowering()));
// FIXME: Implement efficient support for garbage collection intrinsics.