Skip to content

Commit 13a2137

Browse files
committed
save work
1 parent 47decaf commit 13a2137

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,9 @@ static LayoutInfo getDefaultSIMTLayoutInfo(VectorType vectorTy,
224224
bitwidth < xegpu::targetinfo::packedSizeInBitsForGatherScatter
225225
? xegpu::targetinfo::packedSizeInBitsForGatherScatter / bitwidth
226226
: 1;
227-
return LayoutInfo(LaneLayout({xegpu::targetinfo::subgroupSize, 1}),
228-
LaneData({1, packingFactor}));
227+
return LayoutInfo(xegpu::LayoutAttr::get(
228+
vectorTy.getContext(), {xegpu::targetinfo::subgroupSize, 1},
229+
{1, packingFactor}));
229230
}
230231
if (bitwidth < xegpu::targetinfo::packedSizeInBitsForDefault)
231232
packingFactor = xegpu::targetinfo::packedSizeInBitsForDefault / bitwidth;
@@ -787,7 +788,8 @@ void LayoutInfoPropagation::visitStoreScatterOp(
787788
LayoutInfo payloadLayout =
788789
getDefaultSIMTLayoutInfo(payloadTy, /*scattered=*/true);
789790

790-
LayoutInfo maskLayout = getDefaultSIMTLayoutInfo(1);
791+
LayoutInfo maskLayout =
792+
getDefaultSIMTLayoutInfo(storeScatter->getContext(), 1);
791793
// Propagate the payload operand layout
792794
propagateIfChanged(operands[0], operands[0]->meet(payloadLayout));
793795
// Propagate the destination (if tdesc) operand layout

0 commit comments

Comments
 (0)