From ca192025a5bf7d741893d42e12db343eac0e34d7 Mon Sep 17 00:00:00 2001 From: Sam Parker Date: Thu, 13 Jun 2019 08:32:56 +0000 Subject: [PATCH] [NFC] Simplify Call query 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/ARM/ARMTargetTransformInfo.cpp b/lib/Target/ARM/ARMTargetTransformInfo.cpp index 5f0fbd03cc9..a57a4049dbc 100644 --- a/lib/Target/ARM/ARMTargetTransformInfo.cpp +++ b/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(&I)) { - switch (Call->getCalledFunction()->getIntrinsicID()) { + switch (Call->getIntrinsicID()) { default: break; case Intrinsic::set_loop_iterations: -- 2.50.1