[Mlir-commits] [mlir] [MLIR][XeGPU] Scattered ops sg-to-wi distribution (PR #154949)

Charitha Saumya llvmlistbot at llvm.org
Mon Aug 25 10:15:09 PDT 2025


charithaintc wrote:

> > assume this is always distributable.
> 
> This solves the major issue.
> 
> In your examples, how does the distribution pattern decide whether to use `laneId` (example 2) or `0` (example 1) if it only sees the argument as a vector of n values?

This is done by WarpOpElementwise, If the compile can prove the value is uniform it will uniformly distribute the vector. If not the values can not be distributed. So `warpOP` is not fully eliminated. There is a pattern to lower remaining warpOp s to scf.if. 

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


More information about the Mlir-commits mailing list