mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-15 17:07:52 +00:00
[x86] fix initialization of PredictableSelectIsExpensive
This is effectively NFC because Atom is the only in-order x86 subtarget currently, but the predicate would have become wrong if any other in-order CPU came along. See related discussion in: http://reviews.llvm.org/D16836 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261275 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1cf60cc355
commit
1fe289faae
@ -1846,9 +1846,9 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
|
||||
MaxStoresPerMemmoveOptSize = 4;
|
||||
setPrefLoopAlignment(4); // 2^4 bytes.
|
||||
|
||||
// A predictable cmov does not hurt on an in-order CPU.
|
||||
// FIXME: Use a CPU attribute to trigger this, not a CPU model.
|
||||
PredictableSelectIsExpensive = !Subtarget.isAtom();
|
||||
// An out-of-order CPU can speculatively execute past a predictable branch,
|
||||
// but a conditional move could be stalled by an expensive earlier operation.
|
||||
PredictableSelectIsExpensive = Subtarget.getSchedModel().isOutOfOrder();
|
||||
EnableExtLdPromotion = true;
|
||||
setPrefFunctionAlignment(4); // 2^4 bytes.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user