Skip to content

Commit

Permalink
[Pass] Fix non constant loop bound in .outline()
Browse files Browse the repository at this point in the history
  • Loading branch information
chhzh123 committed Aug 8, 2022
1 parent ec69284 commit 6a856ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Transforms/LoopTransformations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2534,7 +2534,9 @@ LogicalResult runOutline(ModuleOp &mod, func::FuncOp &f, OutlineOp &outlineOp) {
assert(idx != -1 && "Not found target IV");
loops.push_back({targetLoop, idx});
} else {
assert(false && "Not supported");
assert(srcLoop.getUpperBound().getMap() ==
targetLoop.getUpperBound().getMap() &&
"map mismatch");
}
}
}
Expand Down

0 comments on commit 6a856ef

Please sign in to comment.