Skip to content

Commit

Permalink
[Arith] Allow vector expressions in IntSet::operator(PrimExpr)
Browse files Browse the repository at this point in the history
Since these are tracked when lowering expressions, should allow
post-vectorization expressions.

To maintain previous behavior, this only applies when using the
automatically tracked `Map<Var, IntSet> dom_map_`.  If an explicit
domain map is passed, the previous behavior of raising an error for
vectorized expressions still occurs.
  • Loading branch information
Lunderberg committed Jul 7, 2022
1 parent 254e1bd commit 445a94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arith/int_set.cc
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ class IntSetAnalyzer::Impl {
}

IntSet Eval(const PrimExpr& expr) const {
return IntervalSetEvaluator(analyzer_, GetCurrentBounds()).Eval(expr);
return IntervalSetEvaluator(analyzer_, GetCurrentBounds(), true).Eval(expr);
}

void Bind(const Var& var, const Range& range, bool allow_override) {
Expand Down

0 comments on commit 445a94a

Please sign in to comment.