[Mlir-commits] [mlir] [MLIR][XeGPU] Enhance the peephole optimization to remove the convert_layout after multi-reduction rewrite (PR #188849)
Nishant Patel
llvmlistbot at llvm.org
Wed Apr 1 12:59:14 PDT 2026
================
@@ -442,6 +442,20 @@ class MultiRed2dOpPattern
auto loc = reductionOp.getLoc();
auto acc = reductionOp.getAcc();
+ // If the result is scalar after reduction, look for consumer
+ // convert_layout op and remove it. The layout propagation pass will
+ // re-install it properly after the decomposition.
+ Type resultType = reductionOp.getResult().getType();
----------------
nbpatel wrote:
added
https://github.com/llvm/llvm-project/pull/188849
More information about the Mlir-commits
mailing list