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

Pankaj Dwivedi via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 26 03:28:11 PDT 2026


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

----------------
PankajDwivedi-25 wrote:

If I understood your concern correctly here;
Presently, we have print like:

> BLOCK entry:
> DEFINITIONS
>   DIVERGENT:   %tid = call i32 @llvm.amdgcn.workitem.id.x()
>                %add = add i32 %a, %b
> TERMINATORS
>                ret void
> END BLOCK

What you are expecting is:

> 
> BLOCK entry:
> DEFINITIONS
>   DIVERGENT: %tid = call i32 @llvm.amdgcn.workitem.id.x()
>     UNIFORM: %add = add i32 %a, %b
> TERMINATORS
>     UNIFORM: ret void
> END BLOCK

Printing both uniform and divergent values, right? I will create a patch for that separately.

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


More information about the llvm-commits mailing list