[Mlir-commits] [mlir] [MLIR][XeGPU] Hoist i4 extensions above lane shuffles (PR #234760)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Oct 22 13:51:54 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/Conversion/XeGPUToXeVM/XeGPUToXeVM.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/Conversion/XeGPUToXeVM/XeGPUToXeVM.cpp b/mlir/lib/Conversion/XeGPUToXeVM/XeGPUToXeVM.cpp
index ecf8f414c..17510e50b 100644
--- a/mlir/lib/Conversion/XeGPUToXeVM/XeGPUToXeVM.cpp
+++ b/mlir/lib/Conversion/XeGPUToXeVM/XeGPUToXeVM.cpp
@@ -1688,7 +1688,8 @@ public:
if (isa<xegpu::LaneShuffleOp>(def))
break;
if (!isa<vector::ShapeCastOp, vector::ExtractStridedSliceOp,
- vector::ExtractOp, vector::BroadcastOp, vector::TransposeOp>(def))
+ vector::ExtractOp, vector::BroadcastOp, vector::TransposeOp>(
+ def))
return failure();
// Only vector results are supported; scalar extraction needs separate
// narrow-type legalization.
``````````
</details>
https://github.com/llvm/llvm-project/pull/234760
More information about the Mlir-commits
mailing list