[llvm] [DominanceFrontier] Support multiple root nodes for post-dom (PR #181257)
Andrei Elovikov via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 20 07:58:39 PST 2026
================
@@ -101,16 +101,11 @@ class DominanceFrontierBase {
#endif
void analyze(DomTreeT &DT) {
- assert((IsPostDom || DT.root_size() == 1) &&
----------------
eas wrote:
Why should we? We don't care about the number of roots here anymore, so if any of the users do, they should do the assert. Besides, `getRoot` at line 70 still has one.
https://github.com/llvm/llvm-project/pull/181257
More information about the llvm-commits
mailing list