Skip to content

Commit c9808bf

Browse files
committed
[NFC][indvars] Remove unused code in WidenIV::widenLoopCompare
1 parent 4ac3042 commit c9808bf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/lib/Transforms/Utils/SimplifyIndVar.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,10 +1493,6 @@ bool WidenIV::widenLoopCompare(WidenIV::NarrowIVDefUse DU) {
14931493
assert(CastWidth <= IVWidth && "Unexpected width while widening compare.");
14941494

14951495
// Widen the compare instruction.
1496-
auto *InsertPt = getInsertPointForUses(DU.NarrowUse, DU.NarrowDef, DT, LI);
1497-
if (!InsertPt)
1498-
return false;
1499-
IRBuilder<> Builder(InsertPt);
15001496
DU.NarrowUse->replaceUsesOfWith(DU.NarrowDef, DU.WideDef);
15011497

15021498
// Widen the other operand of the compare, if necessary.

0 commit comments

Comments
 (0)