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 dbc2b04 commit 9bef91eCopy full SHA for 9bef91e
llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -4194,7 +4194,7 @@ class AddressingModeCombiner {
4194
/// `CommonValue` may be a placeholder inserted by us.
4195
/// If the placeholder is not used, we should remove this dead instruction.
4196
void eraseCommonValueIfDead() {
4197
- if (CommonValue && CommonValue->getNumUses() == 0)
+ if (CommonValue && CommonValue->use_empty())
4198
if (Instruction *CommonInst = dyn_cast<Instruction>(CommonValue))
4199
CommonInst->eraseFromParent();
4200
}
0 commit comments