Skip to content

Commit c4dd5a5

Browse files
committed
address comments
1 parent c34f401 commit c4dd5a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ static LogicalResult updateOp(mlir::OpBuilder &builder, mlir::Operation *op,
687687
// Layouts are needed only for vector and tensor descriptor types.
688688
if (!isa<VectorType, xegpu::TensorDescType>(resultType))
689689
continue;
690-
// If the result has any users, emit a warning and continue.
690+
// If the result has no layout but has users, emit a warning and continue.
691691
xegpu::LayoutAttr layout = getLayoutOfValue(result);
692692
if (!layout && result.getNumUses() > 0) {
693693
op->emitWarning("op has users but no layout assigned for its result");
@@ -867,10 +867,10 @@ struct XeGPULayoutPropagatePass final
867867
} // namespace
868868

869869
void XeGPULayoutPropagatePass::runOnOperation() {
870-
auto &analyis = getAnalysis<RunLayoutInfoPropagation>();
870+
auto &analysis = getAnalysis<RunLayoutInfoPropagation>();
871871
// Helper to convert LayoutInfo to xegpu::LayoutAttr.
872872
auto getXeGPULayoutForValue = [&](Value val) -> xegpu::LayoutAttr {
873-
LayoutInfo layout = analyis.getLayoutInfo(val);
873+
LayoutInfo layout = analysis.getLayoutInfo(val);
874874
if (!layout.isAssigned())
875875
return {};
876876

0 commit comments

Comments
 (0)