[llvm] [UniformityAnalysis] Replace DivergentValues with UniformValues for conservative divergence queries (PR #180509)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 25 04:00:34 PDT 2026


================

----------------
jayfoad wrote:

I don't see why we would care about making the `print` function run faster in the fairly uncommon case where everything is uniform. It is only used for testing and debugging.

Part of the reason that I don't like the `FoundDivergence` field is that in future I think we might do more work to update the analysis on the fly, by propagating divergence for newly created values. Then it seems like there is always a risk that the `FoundDivergence` flag will be not be updated accordingly. It just seems much safer not to rely on it.

https://github.com/llvm/llvm-project/pull/180509


More information about the llvm-commits mailing list