[llvm] [LAA] Always use DepCands when grouping runtime checks. (PR #91196)
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 04:29:42 PDT 2024
================
@@ -233,6 +233,18 @@ class EquivalenceClasses {
return findLeader(TheMapping.find(V));
}
+ /// Erase the class containing \p V.
+ void eraseClass(const ElemTy &V) {
+ if (TheMapping.find(V) == TheMapping.end())
+ return;
+ auto LeaderI = findValue(getLeaderValue(V));
+ for (auto MI = member_begin(LeaderI), ME = member_end(); MI != ME;) {
+ const auto &ToErase = *MI;
----------------
Meinersbur wrote:
```suggestion
const ElemTy &ToErase = *MI;
```
https://github.com/llvm/llvm-project/pull/91196
More information about the llvm-commits
mailing list