Skip to content

Commit b40e608

Browse files
arsenmgithub-actions[bot]
authored andcommitted
Automerge: BypassSlowDivision: Use use_empty instead of hasNUses(0) (#137345)
2 parents e5cb4b8 + a214084 commit b40e608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/BypassSlowDivision.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ bool llvm::bypassSlowDivision(BasicBlock *BB,
457457
Next = Next->getNextNode();
458458

459459
// Ignore dead code to save time and avoid bugs.
460-
if (I->hasNUses(0))
460+
if (I->use_empty())
461461
continue;
462462

463463
FastDivInsertionTask Task(I, BypassWidths);

0 commit comments

Comments
 (0)