tqchen commented on a change in pull request #8114:
URL: https://github.com/apache/tvm/pull/8114#discussion_r637929879
##########
File path: src/arith/int_set.cc
##########
@@ -694,6 +772,18 @@ IntSet EvalSet(Range r, const std::unordered_map<const
VarNode*, IntSet>& dom_ma
return EvalSet(r, ConvertDomMap(dom_map));
}
+Array<IntSet> EvalSet(const Array<Range>& region, const Map<Var, IntSet>&
dom_map) {
+ Analyzer ana;
+ IntervalSetEvaluator m(&ana, dom_map);
+ Array<IntSet> result;
+ result.reserve(region.size());
+ for (const Range& r : region) {
+ PrimExpr sum = r->min + r->extent - 1;
Review comment:
This will allow constant fold of r->extent -1 and avoid the use of
analyzer simplifcation
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]