[llvm] [NewGVN] Prevent cyclic dependencies by ensuring Leader has min RPO number (PR #82110)
Alina Sbirlea via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 27 07:45:15 PST 2024
================
@@ -393,7 +401,7 @@ class CongruenceClass {
unsigned ID;
// Representative leader.
- Value *RepLeader = nullptr;
+ std::pair<Value *, unsigned int> RepLeader = {nullptr, ~0U};
----------------
alinas wrote:
Same comment for RepLeader and for NextLeader below: add what the unsigned represents in a comment above each member.
https://github.com/llvm/llvm-project/pull/82110
More information about the llvm-commits
mailing list