mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 07:31:47 +00:00
[ARM] fix initialization of PredictableSelectIsExpensive
Summary: If we want classify OoO or not, using getSchedModel().isOutOfOrder() could be more proper way than using Subtarget->isLikeA9(). Reviewers: jmolloy, rengolin Differential Revision: http://reviews.llvm.org/D17433 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261623 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0e5677e2b4
commit
b2eca29685
@ -1042,7 +1042,7 @@ ARMTargetLowering::ARMTargetLowering(const TargetMachine &TM,
|
||||
setMinStackArgumentAlignment(4);
|
||||
|
||||
// Prefer likely predicted branches to selects on out-of-order cores.
|
||||
PredictableSelectIsExpensive = Subtarget->isLikeA9();
|
||||
PredictableSelectIsExpensive = Subtarget->getSchedModel().isOutOfOrder();
|
||||
|
||||
setMinFunctionAlignment(Subtarget->isThumb() ? 1 : 2);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user