lightzhan-intellif opened a new pull request, #13808:
URL: https://github.com/apache/tvm/pull/13808
This PR tries to fix the crash of the pass `RemoveNoOp` when the condition
of IfThenElseNode can be statically determined. For example:
```python
@L.prim_func
def remove_no_op():
if True:
L.evaluate(0)
else:
L.evaluate(0)
```
This case will cause `Segment fault` error because `RemoveNoOp` don't cover
the case the return of `Parent::VisitStmt_` is not a `IfThenElseNode`, which
will result in the `stmt.as<IfThenElseNode>()` being `null`.
--
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]