We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2b6b21 commit eaafee2Copy full SHA for eaafee2
mlir/lib/Dialect/Affine/Analysis/Utils.cpp
@@ -380,7 +380,7 @@ Optional<int64_t> MemRefRegion::getConstantBoundingSizeAndShape(
380
// If no constant bound is found, then it can always be bound by the
381
// memref's dim size if the latter has a constant size along this dim.
382
auto dimSize = memRefType.getDimSize(d);
383
- if (dimSize == -1)
+ if (dimSize == ShapedType::kDynamicSize)
384
return None;
385
diffConstant = dimSize;
386
// Lower bound becomes 0.
0 commit comments