mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
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:
parent
0def9c3d7d
commit
5fef51e9aa
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user