OSDN Git Service

[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 5f0fbd0..a57a404 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: