File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -3078,7 +3078,6 @@ const LoopAccessInfo &LoopAccessInfoManager::getInfo(Loop &L) {
3078
3078
return *It->second ;
3079
3079
}
3080
3080
void LoopAccessInfoManager::clear () {
3081
- SmallVector<Loop *> ToRemove;
3082
3081
// Collect LoopAccessInfo entries that may keep references to IR outside the
3083
3082
// analyzed loop or SCEVs that may have been modified or invalidated. At the
3084
3083
// moment, that is loops requiring memory or SCEV runtime checks, as those cache
@@ -3087,11 +3086,8 @@ void LoopAccessInfoManager::clear() {
3087
3086
if (LAI->getRuntimePointerChecking ()->getChecks ().empty () &&
3088
3087
LAI->getPSE ().getPredicate ().isAlwaysTrue ())
3089
3088
continue ;
3090
- ToRemove.push_back (L);
3091
- }
3092
-
3093
- for (Loop *L : ToRemove)
3094
3089
LoopAccessInfoMap.erase (L);
3090
+ }
3095
3091
}
3096
3092
3097
3093
bool LoopAccessInfoManager::invalidate (
You can’t perform that action at this time.
0 commit comments