junrushao1994 commented on a change in pull request #8943:
URL: https://github.com/apache/tvm/pull/8943#discussion_r703887179
##########
File path: src/arith/int_set.cc
##########
@@ -607,6 +607,13 @@ inline bool ProveEqual(Analyzer* analyzer, PrimExpr lhs,
PrimExpr rhs) {
return is_zero(analyzer->Simplify(lhs - rhs));
}
+IntSet IntSet::FromMinExtent(PrimExpr min, PrimExpr extent) {
+ if (is_one(extent)) {
+ return IntSet::SinglePoint(min);
+ }
+ return IntervalSet(min, extent + min - 1);
Review comment:
I suppose there isn't any difference...I just copied the implementation
a few lines above
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]