Skip to content

Commit eaafee2

Browse files
committed
[Affine] Replace a magic -1 with ShapedType::kDynamicSize
1 parent d2b6b21 commit eaafee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Affine/Analysis/Utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ Optional<int64_t> MemRefRegion::getConstantBoundingSizeAndShape(
380380
// If no constant bound is found, then it can always be bound by the
381381
// memref's dim size if the latter has a constant size along this dim.
382382
auto dimSize = memRefType.getDimSize(d);
383-
if (dimSize == -1)
383+
if (dimSize == ShapedType::kDynamicSize)
384384
return None;
385385
diffConstant = dimSize;
386386
// Lower bound becomes 0.

0 commit comments

Comments
 (0)