We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01bda06 commit 7d764ceCopy full SHA for 7d764ce
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
@@ -2621,16 +2621,15 @@ void LibCallSimplifier::classifyArgUse(
2621
SmallVectorImpl<CallInst *> &SinCalls,
2622
SmallVectorImpl<CallInst *> &CosCalls,
2623
SmallVectorImpl<CallInst *> &SinCosCalls) {
2624
- CallInst *CI = dyn_cast<CallInst>(Val);
2625
- Module *M = CI->getModule();
2626
-
+ auto *CI = dyn_cast<CallInst>(Val);
2627
if (!CI || CI->use_empty())
2628
return;
2629
2630
// Don't consider calls in other functions.
2631
if (CI->getFunction() != F)
2632
2633
+ Module *M = CI->getModule();
2634
Function *Callee = CI->getCalledFunction();
2635
LibFunc Func;
2636
if (!Callee || !TLI->getLibFunc(*Callee, Func) ||
0 commit comments