Skip to content

Commit 0819489

Browse files
committed
cleanup
1 parent 2f83417 commit 0819489

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,24 +1237,6 @@ void XeGPUSubgroupDistributePass::runOnOperation() {
12371237
vector::populatePropagateWarpVectorDistributionPatterns(
12381238
patterns, distributionFn, shuffleFn);
12391239

1240-
auto warpReduction = [](Location loc, OpBuilder &builder, Value input,
1241-
vector::CombiningKind kind, uint32_t size) {
1242-
// First reduce on a single thread to get per lane reduction value.
1243-
Value laneVal = builder.create<vector::ReductionOp>(loc, kind, input);
1244-
// Parallel reduction using butterfly shuffles.
1245-
for (uint64_t i = 1; i < size; i <<= 1) {
1246-
Value shuffled =
1247-
builder
1248-
.create<gpu::ShuffleOp>(loc, laneVal, i,
1249-
/*width=*/size,
1250-
/*mode=*/gpu::ShuffleMode::XOR)
1251-
.getShuffleResult();
1252-
laneVal = makeArithReduction(builder, loc, kind, laneVal, shuffled);
1253-
}
1254-
return laneVal;
1255-
};
1256-
1257-
vector::populateDistributeReduction(patterns, warpReduction);
12581240
if (failed(applyPatternsGreedily(getOperation(), std::move(patterns)))) {
12591241
signalPassFailure();
12601242
return;

0 commit comments

Comments
 (0)