Skip to content

Commit d9fde6b

Browse files
authored
Revert "[mlir] [XeGPU] Add XeGPU workgroup to subgroup pass (#139477)"
This reverts commit 747620d.
1 parent 611f47c commit d9fde6b

File tree

6 files changed

+12
-676
lines changed

6 files changed

+12
-676
lines changed

mlir/include/mlir/Dialect/XeGPU/Transforms/Passes.td

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
910
#ifndef MLIR_DIALECT_XEGPU_TRANSFORMS_PASSES_TD
1011
#define MLIR_DIALECT_XEGPU_TRANSFORMS_PASSES_TD
1112

@@ -17,32 +18,24 @@ def XeGPUFoldAliasOps : Pass<"xegpu-fold-alias-ops"> {
1718
The pass folds aliasing ops into XeGPU ops that they operate on the original
1819
source references.
1920
}];
20-
let dependentDialects = ["memref::MemRefDialect", "xegpu::XeGPUDialect"];
21+
let dependentDialects = [
22+
"memref::MemRefDialect", "xegpu::XeGPUDialect"
23+
];
2124
}
2225

2326
def XeGPUSubgroupDistribute : Pass<"xegpu-subgroup-distribute"> {
2427
let summary = "Distribute XeGPU ops to work items";
2528
let description = [{
2629
The pass distributes subgroup level (SIMD) XeGPU ops to work items.
2730
}];
28-
let dependentDialects = ["memref::MemRefDialect", "xegpu::XeGPUDialect",
29-
"vector::VectorDialect"];
30-
let options = [Option<
31-
"printOnly", "print-analysis-only", "bool",
32-
/*default=*/"false",
33-
"Print the result of the subgroup map propagation analysis and exit.">];
34-
}
35-
36-
def XeGPUWgToSgDistribute : Pass<"xegpu-wg-to-sg-distribute"> {
37-
let summary = "Transform WorkGroup level XeGPU code to SubGroup level";
38-
let description = [{
39-
This transform pass distributes the workgroup level computation to
40-
multiple subgroups based on the sg_layout and sg_data attributes.
41-
}];
42-
43-
let dependentDialects = ["memref::MemRefDialect", "xegpu::XeGPUDialect",
44-
"vector::VectorDialect", "arith::ArithDialect",
45-
"gpu::GPUDialect", "index::IndexDialect"];
31+
let dependentDialects = [
32+
"memref::MemRefDialect", "xegpu::XeGPUDialect", "vector::VectorDialect"
33+
];
34+
let options = [
35+
Option<"printOnly", "print-analysis-only", "bool",
36+
/*default=*/"false",
37+
"Print the result of the subgroup map propagation analysis and exit.">
38+
];
4639
}
4740

4841
#endif // MLIR_DIALECT_XEGPU_TRANSFORMS_PASSES_TD

mlir/include/mlir/Dialect/XeGPU/Transforms/Transforms.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ void populateXeGPUFoldAliasOpsPatterns(RewritePatternSet &patterns);
6262

6363
/// Appends patterns for XeGPU SIMT distribution into `patterns`.
6464
void populateXeGPUSubgroupDistributePatterns(RewritePatternSet &patterns);
65-
void populateXeGPUWgToSgDistributePatterns(RewritePatternSet &patterns);
6665

6766
/// Collect a set of patterns to unroll xegpu operations to a smaller shapes.
6867
/// Users can control whether an operation to be unrolled or not, as well as

mlir/lib/Dialect/XeGPU/Transforms/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ add_mlir_dialect_library(MLIRXeGPUTransforms
22
XeGPUFoldAliasOps.cpp
33
XeGPUSubgroupDistribute.cpp
44
XeGPUUnroll.cpp
5-
XeGPUWgToSgDistribute.cpp
65

76
ADDITIONAL_HEADER_DIRS
87
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/XeGPU

0 commit comments

Comments
 (0)