Skip to content

Commit

Permalink
[mlir][Analysis] Fix assertion in FlatLinearConstraints
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D146869
  • Loading branch information
matthias-springer committed Mar 25, 2023
1 parent 7da272a commit 7e5d300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/Analysis/FlatLinearValueConstraints.cpp
Expand Up @@ -457,7 +457,7 @@ void FlatLinearConstraints::getSliceBounds(unsigned offset, unsigned num,
SmallVectorImpl<AffineMap> *lbMaps,
SmallVectorImpl<AffineMap> *ubMaps,
bool closedUB) {
assert(num < getNumDimVars() && "invalid range");
assert(offset + num <= getNumDimVars() && "invalid range");

// Basic simplification.
normalizeConstraintsByGCD();
Expand Down

0 comments on commit 7e5d300

Please sign in to comment.