[llvm] [Support][NFC] Use single predecessor array in DomTreeConstr (PR #207535)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 4 23:52:45 PDT 2026
================
@@ -314,8 +319,12 @@ template <typename DomTreeT> struct SemiNCAInfo {
// Initialize the semi dominator to point to the parent node.
WInfo.Semi = WInfo.Parent;
- for (unsigned N : WInfo.ReverseChildren) {
- unsigned SemiU = NumToInfo[eval(N, i + 1, EvalStack, NumToInfo)]->Semi;
+ unsigned RCIdx = WInfo.ReverseChildrenStart;
----------------
aengelke wrote:
That'd add an extra add/sub when storing/reading the list; I think 8 bytes of wasted memory are acceptable to avoid that.
https://github.com/llvm/llvm-project/pull/207535
More information about the llvm-commits
mailing list