[Mlir-commits] [mlir] [vector][distribution] Bug fix in `moveRegionToNewWarpOpAndAppendReturns` (PR #153656)

Adam Siemieniuk llvmlistbot at llvm.org
Fri Aug 15 02:58:21 PDT 2025


adam-smnk wrote:

What happens when there are users of all three `%r:3` results? Is it tracked correctly?

Btw, this example still crashes:
```mlir
func.func @warp_propagate_duplicated_operands_in_yield(%laneid: index)  {
  %r:3 = gpu.warp_execute_on_lane_0(%laneid)[32] -> (vector<1xf32>, vector<1xf32>, vector<1xf32>) {
    %0 = "some_def"() : () -> (vector<32xf32>)
    %1 = "some_other_def"() : () -> (vector<32xf32>)
    %2 = math.exp %1 : vector<32xf32>
    gpu.yield %2, %0, %0 : vector<32xf32>, vector<32xf32>, vector<32xf32>
  }
  "some_use"(%r#2) : (vector<1xf32>) -> ()
  return
}
```

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


More information about the Mlir-commits mailing list