Skip to content

Commit a214084

Browse files
authored
BypassSlowDivision: Use use_empty instead of hasNUses(0) (#137345)
1 parent cf766f5 commit a214084

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)