Skip to content

Commit d17cefe

Browse files
committed
use static array instead of a vector
Signed-off-by: dchigarev <[email protected]>
1 parent e08753e commit d17cefe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/gc/Transforms/GPU/AllocsToSLM.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ struct ConvertAlloc : public OpRewritePattern<memref::AllocOp> {
8181
return rewriter.notifyMatchFailure(
8282
allocOp, "Only support constant block sizes for now");
8383

84-
SmallVector<int64_t, 3> blockSizes = {xSz.value(), ySz.value(),
85-
zSz.value()};
84+
int64_t blockSizes[3] = {xSz.value(), ySz.value(), zSz.value()};
8685
MemRefType originalMemRefType = cast<MemRefType>(memref.getType());
8786
auto originalShape = originalMemRefType.getShape();
8887

0 commit comments

Comments
 (0)