[llvm] [ConstraintElim] Strengthen flags at the closest dominator of all uses. (PR #220918)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 3 05:51:02 PDT 2026
fhahn wrote:
One thing to note is that we already have some duplication here in general: there is logic for flag inference explicitly but also implicitly in various decompose rules. With this change, the gap between them closes considerably, but a small gap still remains: decompose inference works with facts at the specific use site where the query is performed, which we cannot completely match with the nearest dominator.
I am planning to investigate if there's a better way to at least unify the inference logic in a single place separately, but ideally we would only query per-use in decompose when we know that it could improve results. One example where the flag strengthening logic should always be sufficient is if there's a single use.
https://github.com/llvm/llvm-project/pull/220918
More information about the llvm-commits
mailing list