Skip to content

Commit b5013d0

Browse files
committed
using restrict
1 parent 725c734 commit b5013d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/Conversion/MeshToMPI/MeshToMPI.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,8 @@ struct ConvertUpdateHaloOp
400400
} else {
401401
assert(isa<RankedTensorType>(op.getResult().getType()));
402402
rewriter.replaceOp(op, rewriter.create<bufferization::ToTensorOp>(
403-
loc, op.getResult().getType(), array));
403+
loc, op.getResult().getType(), array,
404+
/*restrict=*/true, /*writable=*/true));
404405
}
405406
return mlir::success();
406407
}

0 commit comments

Comments
 (0)