Skip to content

Commit d36ce05

Browse files
authored
ComplexDeinterleaving: Avoid using getNumUses (#136354)
1 parent a79e257 commit d36ce05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ ComplexDeinterleavingGraph::identifyReassocNodes(Instruction *Real,
11681168
// the latter case, we will attempt to separately identify the complex
11691169
// operation from here in order to create a shared
11701170
// ComplexDeinterleavingCompositeNode.
1171-
if (I != Insn && I->getNumUses() > 1) {
1171+
if (I != Insn && I->hasNUsesOrMore(2)) {
11721172
LLVM_DEBUG(dbgs() << "Found potential sub-expression: " << *I << "\n");
11731173
Addends.emplace_back(I, IsPositive);
11741174
continue;

0 commit comments

Comments
 (0)