forked from OSchip/llvm-project
[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. llvm-svn: 214957
This commit is contained in:
parent
bc9f9928b7
commit
f089ab70f4
|
@ -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…
Reference in New Issue