mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
For Intel Atom, use ILP scheduling always, instead of ILP for 64 bit
and Hybrid for 32 bit, since benchmarks show ILP scheduling is better most of the time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
79bbe855cd
commit
c0f0a93936
@ -167,11 +167,11 @@ X86TargetLowering::X86TargetLowering(X86TargetMachine &TM)
|
||||
|
||||
// For 64-bit since we have so many registers use the ILP scheduler, for
|
||||
// 32-bit code use the register pressure specific scheduling.
|
||||
// For 32 bit Atom, use Hybrid (register pressure + latency) scheduling.
|
||||
if (Subtarget->is64Bit())
|
||||
// For Atom, always use ILP scheduling.
|
||||
if (Subtarget->isAtom())
|
||||
setSchedulingPreference(Sched::ILP);
|
||||
else if (Subtarget->is64Bit())
|
||||
setSchedulingPreference(Sched::ILP);
|
||||
else if (Subtarget->isAtom())
|
||||
setSchedulingPreference(Sched::Hybrid);
|
||||
else
|
||||
setSchedulingPreference(Sched::RegPressure);
|
||||
setStackPointerRegisterToSaveRestore(X86StackPtr);
|
||||
|
Loading…
Reference in New Issue
Block a user