Skip to content

Commit 94baa23

Browse files
Rebased: ValueBoundsConstraintSet: Delete dead code
1 parent fb635be commit 94baa23

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

mlir/lib/Interfaces/ValueBoundsOpInterface.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -286,18 +286,6 @@ LogicalResult ValueBoundsConstraintSet::computeBound(
286286
Builder b(value.getContext());
287287
mapOperands.clear();
288288

289-
if (stopCondition(value, dim)) {
290-
// Special case: If the stop condition is satisfied for the input
291-
// value/dimension, directly return it.
292-
mapOperands.push_back(std::make_pair(value, dim));
293-
AffineExpr bound = b.getAffineDimExpr(0);
294-
if (type == BoundType::UB)
295-
bound = bound + ubAdjustment;
296-
resultMap = AffineMap::get(/*dimCount=*/1, /*symbolCount=*/0,
297-
b.getAffineDimExpr(0));
298-
return success();
299-
}
300-
301289
// Process the backward slice of `value` (i.e., reverse use-def chain) until
302290
// `stopCondition` is met.
303291
ValueDim valueDim = std::make_pair(value, dim.value_or(kIndexValue));

0 commit comments

Comments
 (0)