1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

[NFC] Simplify Call query

Use getIntrinsicID() directly from IntrinsicInst.

llvm-svn: 363235
This commit is contained in:
Sam Parker 2019-06-13 08:32:56 +00:00
parent a6e678d64e
commit 81fad75027

View 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: