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 332e181 commit 559a50cCopy full SHA for 559a50c
llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
@@ -2085,7 +2085,7 @@ PHINode *WidenIV::createWideIV(SCEVExpander &Rewriter) {
2085
// if the cast node is an inserted instruction without any user, we should
2086
// remove it to make sure the pass don't touch the function as we can not
2087
// wide the phi.
2088
- if (ExpandInst->hasNUses(0) &&
+ if (ExpandInst->use_empty() &&
2089
Rewriter.isInsertedInstruction(cast<Instruction>(ExpandInst)))
2090
DeadInsts.emplace_back(ExpandInst);
2091
return nullptr;
0 commit comments