aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopVersioning.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2022-10-04 21:35:41 +0100
committerFlorian Hahn <flo@fhahn.com>2022-10-04 21:35:42 +0100
commit4f827318e3e8ccab4ff131e06234caa827e91e4e (patch)
tree6a4dbbdb00b4345f6d557c20b34af112995c794c /llvm/lib/Transforms/Utils/LoopVersioning.cpp
parent38b6f58e33bbd8dc0be570f41806d0a9006610d9 (diff)
downloadllvm-4f827318e3e8ccab4ff131e06234caa827e91e4e.zip
llvm-4f827318e3e8ccab4ff131e06234caa827e91e4e.tar.gz
llvm-4f827318e3e8ccab4ff131e06234caa827e91e4e.tar.bz2
[LoopVersioning,LLE] Clear LoopAccessInfoManager after making changes.
Loop versioning changes the control-flow, which may impact SCEVs cached by for other loops in LoopAccessInfoManager. Clear the manager after making changes. Fixes #57825. Depends on D134609. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D134611
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopVersioning.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopVersioning.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopVersioning.cpp b/llvm/lib/Transforms/Utils/LoopVersioning.cpp
index 212876f..17e71cf 100644
--- a/llvm/lib/Transforms/Utils/LoopVersioning.cpp
+++ b/llvm/lib/Transforms/Utils/LoopVersioning.cpp
@@ -284,6 +284,7 @@ bool runImpl(LoopInfo *LI, LoopAccessInfoManager &LAIs, DominatorTree *DT,
LVer.versionLoop();
LVer.annotateLoopWithNoAlias();
Changed = true;
+ LAIs.clear();
}
}