You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/09/20 07:11:00 UTC

[GitHub] [tvm] wrongtest-intellif commented on a diff in pull request #12836: [TIR] Enhance RemoveNoOp pass to remove negative loop

wrongtest-intellif commented on code in PR #12836:
URL: https://github.com/apache/tvm/pull/12836#discussion_r974965905


##########
src/tir/transforms/remove_no_op.cc:
##########
@@ -87,9 +87,15 @@ class NoOpRemover : public StmtMutator {
     }
   }
   Stmt VisitStmt_(const ForNode* op) final {
+    var_range_map_[op->loop_var.get()] = arith::IntSet::Interval(op->min, op->min + op->extent - 1);

Review Comment:
   recommend arith::IntSet::FromMinExtent() :)



-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org