Skip to content

Commit 6aa4aef

Browse files
committed
save work
1 parent d5d2713 commit 6aa4aef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,11 +1576,11 @@ struct GpuIndexOpDistribution final : public gpu::WarpDistributionPattern {
15761576
if (!operand)
15771577
return rewriter.notifyMatchFailure(subgroupOp,
15781578
"warp result is not a gpu index op");
1579-
auto indexOp = operand->get().getDefiningOp<IndexOp>();
1579+
Operation *indexOp = operand->get().getDefiningOp<IndexOp>();
15801580
unsigned operandIdx = operand->getOperandNumber();
15811581
SmallVector<Value, 3> newYieldValues;
15821582
SmallVector<Type, 3> newYieldTypes;
1583-
for (auto operand : indexOp->template getOperands()) {
1583+
for (Value operand : indexOp->getOperands()) {
15841584
newYieldValues.push_back(operand);
15851585
newYieldTypes.push_back(operand.getType());
15861586
}
@@ -1594,7 +1594,7 @@ struct GpuIndexOpDistribution final : public gpu::WarpDistributionPattern {
15941594
}
15951595
auto newIndexOp = rewriter.create<IndexOp>(
15961596
newWarpOp.getLoc(), newIndexOperands,
1597-
removeTemporaryLayoutAttributes(indexOp->template getAttrs()));
1597+
removeTemporaryLayoutAttributes(indexOp->getAttrs()));
15981598
Value distributedVal = newWarpOp.getResult(operandIdx);
15991599
rewriter.replaceAllUsesWith(distributedVal, newIndexOp);
16001600
return success();

0 commit comments

Comments
 (0)