[llvm] 2441e23 - [NFC][indvars] Remove unused code in WidenIV::widenLoopCompare (#73506)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 17:46:30 PST 2023
Author: Wenju He
Date: 2023-12-01T09:46:24+08:00
New Revision: 2441e237a2d6ad44eedb26bde4406e274e32c4a4
URL: https://github.com/llvm/llvm-project/commit/2441e237a2d6ad44eedb26bde4406e274e32c4a4
DIFF: https://github.com/llvm/llvm-project/commit/2441e237a2d6ad44eedb26bde4406e274e32c4a4.diff
LOG: [NFC][indvars] Remove unused code in WidenIV::widenLoopCompare (#73506)
Added:
Modified:
llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
index c2ca97d9ef9f78b..722ed03db3de30e 100644
--- a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
@@ -1511,10 +1511,6 @@ bool WidenIV::widenLoopCompare(WidenIV::NarrowIVDefUse DU) {
assert(CastWidth <= IVWidth && "Unexpected width while widening compare.");
// Widen the compare instruction.
- auto *InsertPt = getInsertPointForUses(DU.NarrowUse, DU.NarrowDef, DT, LI);
- if (!InsertPt)
- return false;
- IRBuilder<> Builder(InsertPt);
DU.NarrowUse->replaceUsesOfWith(DU.NarrowDef, DU.WideDef);
// Widen the other operand of the compare, if necessary.
More information about the llvm-commits
mailing list