Skip to content

Commit aa5e726

Browse files
committed
[NFC][indvars] Remove unused code in WidenIV::widenLoopCompare
1 parent 8b9a6af commit aa5e726

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
@@ -1511,10 +1511,6 @@ bool WidenIV::widenLoopCompare(WidenIV::NarrowIVDefUse DU) {
15111511
assert(CastWidth <= IVWidth && "Unexpected width while widening compare.");
15121512

15131513
// Widen the compare instruction.
1514-
auto *InsertPt = getInsertPointForUses(DU.NarrowUse, DU.NarrowDef, DT, LI);
1515-
if (!InsertPt)
1516-
return false;
1517-
IRBuilder<> Builder(InsertPt);
15181514
DU.NarrowUse->replaceUsesOfWith(DU.NarrowDef, DU.WideDef);
15191515

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

0 commit comments

Comments
 (0)