File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
mlir/lib/Dialect/Linalg/Transforms Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -105,13 +105,13 @@ static ReductionKind getReductionKindOfLinalgOp(LinalgOp op) {
105105static MeshOp getMesh (Operation *op, ArrayRef<MeshSharding> operandShardings,
106106 ArrayRef<MeshSharding> resultShardings,
107107 SymbolTableCollection &symbolTable) {
108- for (MeshSharding sharding : operandShardings) {
108+ for (const MeshSharding& sharding : operandShardings) {
109109 if (sharding) {
110110 return mesh::getMesh (op, sharding.getMeshAttr (), symbolTable);
111111 }
112112 }
113113
114- for (MeshSharding sharding : resultShardings) {
114+ for (const MeshSharding& sharding : resultShardings) {
115115 if (sharding) {
116116 return mesh::getMesh (op, sharding.getMeshAttr (), symbolTable);
117117 }
You can’t perform that action at this time.
0 commit comments