diff options
author | Florian Hahn <flo@fhahn.com> | 2022-10-04 21:35:41 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2022-10-04 21:35:42 +0100 |
commit | 4f827318e3e8ccab4ff131e06234caa827e91e4e (patch) | |
tree | 6a4dbbdb00b4345f6d557c20b34af112995c794c /llvm/lib/Transforms/Utils/LoopVersioning.cpp | |
parent | 38b6f58e33bbd8dc0be570f41806d0a9006610d9 (diff) | |
download | llvm-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.cpp | 1 |
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(); } } |