Fix asserts as suggested by Arjun

This commit is contained in:
Groverkss 2021-11-11 22:42:04 +05:30
parent 19352630c0
commit 1e0d7fd769
1 changed files with 2 additions and 2 deletions

View File

@ -1925,8 +1925,8 @@ void FlatAffineConstraints::removeRedundantConstraints() {
static void eleminateRedundantLocalId(FlatAffineConstraints &fac, unsigned pos1,
unsigned pos2) {
assert(pos1 <= fac.getNumLocalIds() && "Invalid local id position");
assert(pos2 <= fac.getNumLocalIds() && "Invalid local id position");
assert(pos1 < fac.getNumLocalIds() && "Invalid local id position");
assert(pos2 < fac.getNumLocalIds() && "Invalid local id position");
unsigned localOffset = fac.getNumDimAndSymbolIds();
pos1 += localOffset;