Skip to content

Commit a38882d

Browse files
author
Frank Laub
authored
Merge pull request #26 from plaidml/flaub-fix-assert
Drop overly restrictive assertion
2 parents 10d7e2d + 1f0028e commit a38882d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mlir/lib/Dialect/Affine/IR/AffineOps.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2508,7 +2508,6 @@ OpBuilder AffineParallelOp::getBodyBuilder() {
25082508
void AffineParallelOp::setLowerBounds(ValueRange lbOperands, AffineMap map) {
25092509
assert(lbOperands.size() == map.getNumInputs() &&
25102510
"operands to map must match number of inputs");
2511-
assert(map.getNumResults() >= 1 && "bounds map has at least one result");
25122511

25132512
auto ubOperands = getUpperBoundsOperands();
25142513

@@ -2522,7 +2521,6 @@ void AffineParallelOp::setLowerBounds(ValueRange lbOperands, AffineMap map) {
25222521
void AffineParallelOp::setUpperBounds(ValueRange ubOperands, AffineMap map) {
25232522
assert(ubOperands.size() == map.getNumInputs() &&
25242523
"operands to map must match number of inputs");
2525-
assert(map.getNumResults() >= 1 && "bounds map has at least one result");
25262524

25272525
SmallVector<Value, 4> newOperands(getLowerBoundsOperands());
25282526
newOperands.append(ubOperands.begin(), ubOperands.end());

0 commit comments

Comments
 (0)