aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
diff options
context:
space:
mode:
authorWenju He <wenju.he@intel.com>2023-12-01 09:46:24 +0800
committerGitHub <noreply@github.com>2023-12-01 09:46:24 +0800
commit2441e237a2d6ad44eedb26bde4406e274e32c4a4 (patch)
tree7bc87a065b3345dcd5e4cc15f1805bfbda8dff29 /llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
parent985c0d1903c173b896674b30480992e2414b8aa0 (diff)
downloadllvm-2441e237a2d6ad44eedb26bde4406e274e32c4a4.zip
llvm-2441e237a2d6ad44eedb26bde4406e274e32c4a4.tar.gz
llvm-2441e237a2d6ad44eedb26bde4406e274e32c4a4.tar.bz2
[NFC][indvars] Remove unused code in WidenIV::widenLoopCompare (#73506)
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyIndVar.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyIndVar.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
index c2ca97d..722ed03 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.