Skip to content

Commit d8b74b3

Browse files
committed
save work
1 parent 562b5c7 commit d8b74b3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ struct SGMapLattice : public Lattice<SGMap> {
179179
/// For 1D vector, wi_layout is [subgroupSize] and wi_data is [1].
180180
/// For 2D vector, wi_layout is [1, subgroupSize] and wi_data is [1, 1].
181181
static SGMap getDefaultSgMap(unsigned rank) {
182-
assert((rank == 1 || rank == 2) && "Expected 0D or 1D vector.");
182+
assert((rank == 1 || rank == 2) && "Expected 1D or 2D vector.");
183183
if (rank == 1)
184184
return SGMap(WiLayout({subgroupSize}), WiData({1}));
185185
return SGMap(WiLayout({1, subgroupSize}), WiData({1, 1}));
@@ -428,11 +428,10 @@ void SGMapPropagation::visitTransposeOp(
428428
vector::TransposeOp transpose, ArrayRef<SGMapLattice *> operands,
429429
ArrayRef<const SGMapLattice *> results) {
430430
/// Need the layout of transpose result to propagate to the operands.
431-
auto operandLayout = results[0]->getValue();
432-
if (!operandLayout.isAssigned())
431+
auto resultLayout = results[0]->getValue();
432+
if (!resultLayout.isAssigned())
433433
return;
434-
auto newLayout =
435-
operandLayout.getTransposedLayout(transpose.getPermutation());
434+
auto newLayout = resultLayout.getTransposedLayout(transpose.getPermutation());
436435
/// Propagate the new layout to the vector operand.
437436
propagateIfChanged(operands[0], operands[0]->meet(newLayout));
438437
}

0 commit comments

Comments
 (0)