[Mlir-commits] [mlir] [mlir][xegpu] Lower lane_data repack convert_layout to bitcast_shuffle (PR #210837)
Jianhui Li
llvmlistbot at llvm.org
Wed Jul 29 10:46:24 PDT 2026
================
@@ -937,6 +937,35 @@ LogicalResult TruncfOp::verify() {
return success();
}
+//===----------------------------------------------------------------------===//
+// XeGPU_BitcastShuffleOp
+//===----------------------------------------------------------------------===//
+
+LogicalResult BitcastShuffleOp::verify() {
+ Type srcType = getSourceType();
+ Type resType = getResultType();
+
+ // A bitcast_shuffle only makes sense between two different types; a
+ // same-type shuffle is a no-op.
----------------
Jianhui-Li wrote:
Same-type means same distribution. Each lane doesn't need to shuffle data to neighbor since there is no need to redistribution.
BTW. I just realize the PR is created with duplicated file on top of https://github.com/llvm/llvm-project/pull/210777
https://github.com/llvm/llvm-project/pull/210837
More information about the Mlir-commits
mailing list