]> granicus.if.org Git - llvm/commitdiff
[NFC] Simplify Call query
authorSam Parker <sam.parker@arm.com>
Thu, 13 Jun 2019 08:32:56 +0000 (08:32 +0000)
committerSam Parker <sam.parker@arm.com>
Thu, 13 Jun 2019 08:32:56 +0000 (08:32 +0000)
Use getIntrinsicID() directly from IntrinsicInst.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363235 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMTargetTransformInfo.cpp

index 5f0fbd03cc9b1ac0ac99bc45c7cbfe815465d457..a57a4049dbc7c0bb9a40aa503ec4a075144249d5 100644 (file)
@@ -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: