[llvm] r363235 - [NFC] Simplify Call query
Sam Parker via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 13 01:32:57 PDT 2019
Author: sam_parker
Date: Thu Jun 13 01:32:56 2019
New Revision: 363235
URL: http://llvm.org/viewvc/llvm-project?rev=363235&view=rev
Log:
[NFC] Simplify Call query
Use getIntrinsicID() directly from IntrinsicInst.
Modified:
llvm/trunk/lib/Target/ARM/ARMTargetTransformInfo.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMTargetTransformInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMTargetTransformInfo.cpp?rev=363235&r1=363234&r2=363235&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMTargetTransformInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMTargetTransformInfo.cpp Thu Jun 13 01:32:56 2019
@@ -806,7 +806,7 @@ bool ARMTTIImpl::isHardwareLoopProfitabl
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:
More information about the llvm-commits
mailing list