summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Parker <sam.parker@arm.com>2019-06-13 08:32:56 +0000
committerSam Parker <sam.parker@arm.com>2019-06-13 08:32:56 +0000
commit179e0fa8815e86b169594e5cfb177b2270d5001f (patch)
tree362ac5e9d2584144ec3506b2d47fdcf5479b48d2
parent9d28473a355503bfc730a4eb5b9dbbc8d0ca321c (diff)
downloadbcm5719-llvm-179e0fa8815e86b169594e5cfb177b2270d5001f.tar.gz
bcm5719-llvm-179e0fa8815e86b169594e5cfb177b2270d5001f.zip
[NFC] Simplify Call query
Use getIntrinsicID() directly from IntrinsicInst. llvm-svn: 363235
-rw-r--r--llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp b/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
index 5f0fbd03cc9..a57a4049dbc 100644
--- a/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
@@ -806,7 +806,7 @@ bool ARMTTIImpl::isHardwareLoopProfitable(Loop *L, ScalarEvolution &SE,
auto IsHardwareLoopIntrinsic = [](Instruction &I) {
if (auto *Call = dyn_cast<IntrinsicInst>(&I)) {
- switch (Call->getCalledFunction()->getIntrinsicID()) {
+ switch (Call->getIntrinsicID()) {
default:
break;
case Intrinsic::set_loop_iterations:
OpenPOWER on IntegriCloud