mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 05:29:23 +00:00
[AArch64] Conditional selects are expensive on out-of-order cores.
Specifically Cortex-A57. This probably applies to Cyclone too but I haven't enabled it for that as I can't test it. This gives ~4% improvement on SPEC 174.vpr, and ~1% in 471.omnetpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214957 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a341a8070a
commit
c2482dfc39
@ -477,6 +477,10 @@ AArch64TargetLowering::AArch64TargetLowering(TargetMachine &TM)
|
||||
setOperationAction(ISD::FROUND, Ty, Legal);
|
||||
}
|
||||
}
|
||||
|
||||
// Prefer likely predicted branches to selects on out-of-order cores.
|
||||
if (Subtarget->isCortexA57())
|
||||
PredictableSelectIsExpensive = true;
|
||||
}
|
||||
|
||||
void AArch64TargetLowering::addTypeForNEON(EVT VT, EVT PromotedBitwiseVT) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user