File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
mlir/lib/Dialect/XeGPU/Transforms Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments