summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorJunmo Park <junmoz.park@samsung.com>2016-02-23 09:56:58 +0000
committerJunmo Park <junmoz.park@samsung.com>2016-02-23 09:56:58 +0000
commit453f4aa4ddce612a3f1c28c972ab5407445dab97 (patch)
tree64d1dbab1d093e3ee83eb15f24152d3c2f0d3c54 /llvm/lib/Target/ARM/ARMISelLowering.cpp
parent6bb4b88216b466f31397757643586aaf12fa54ad (diff)
downloadbcm5719-llvm-453f4aa4ddce612a3f1c28c972ab5407445dab97.tar.gz
bcm5719-llvm-453f4aa4ddce612a3f1c28c972ab5407445dab97.zip
[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 llvm-svn: 261623
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 6e88f9badab..479b6d29be9 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -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);
}
OpenPOWER on IntegriCloud