gemini-code-assist[bot] commented on code in PR #19963:
URL: https://github.com/apache/tvm/pull/19963#discussion_r3531067375
##########
src/arith/int_set.cc:
##########
@@ -443,6 +433,13 @@ class IntervalSetEvaluator : public
ExprFunctor<IntervalSet(const Expr&)> {
IntervalSet VisitExpr_(const VarNode* op) final {
Var var = ffi::GetRef<Var>(op);
+ auto it = dom_map_.find(var);
+ // Scoped constraints refine explicit relaxation domains. Variables that
+ // are absent from dom_map_ remain free parameters of the relaxed result.
+ if (it == dom_map_.end()) {
+ return IntervalSet::SinglePoint(var.as_or_throw<PrimExpr>());
Review Comment:

The cast `var.as_or_throw<PrimExpr>()` is redundant because `Var` is already
a subclass of `PrimExpr` and can be implicitly converted. Removing
`as_or_throw` simplifies the code and avoids an unnecessary runtime type check.
```suggestion
return IntervalSet::SinglePoint(var);
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]