[Mlir-commits] [mlir] [mlir][xegpu] Distribute extract_strided_slice over multiple dims (PR #227478)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Sep 30 19:08:53 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp -- mlir/lib/Dialect/XeGPU/Transforms/XeGPUSgToLaneDistribute.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/XeGPU/Transforms/XeGPUSgToLaneDistribute.cpp b/mlir/lib/Dialect/XeGPU/Transforms/XeGPUSgToLaneDistribute.cpp
index da1c97ffe..9884a5736 100644
--- a/mlir/lib/Dialect/XeGPU/Transforms/XeGPUSgToLaneDistribute.cpp
+++ b/mlir/lib/Dialect/XeGPU/Transforms/XeGPUSgToLaneDistribute.cpp
@@ -1377,9 +1377,9 @@ struct SgToLaneVectorExtractStridedSlice
return rewriter.notifyMatchFailure(
op, "source size along a distributed dim is not a multiple of "
"its lane count");
- // A lane owns lane_data contiguous elements along this dim, so the slice
- // has to start on a lane-tile boundary or it would cut one of those
- // runs. Packing changes only that alignment requirement, not the
+ // A lane owns lane_data contiguous elements along this dim, so the
+ // slice has to start on a lane-tile boundary or it would cut one of
+ // those runs. Packing changes only that alignment requirement, not the
// divisor: offset / (lanes * laneData) * laneData == offset / lanes.
int64_t laneData = distDim < static_cast<int64_t>(sourceLaneData.size())
? sourceLaneData[distDim]
``````````
</details>
https://github.com/llvm/llvm-project/pull/227478
More information about the Mlir-commits
mailing list