Lunderberg opened a new pull request, #13433: URL: https://github.com/apache/tvm/pull/13433
When a TIR `IfThenElseNode::else_case` is itself a `IfThenElse` node, it may be printed as `elif` instead of `else: if ...`. The `elif` syntax was already handled on the parsing side, so this commit only changes the TVMScript printer. This change also incidentally altered the printer's output for an else block whose condition is `True`. Previously, these were dropped from the output altogether. Now, they are retained in the else block. Removing no-op statements should be done by a transformation pass, not a printer/parser round trip, so this change in behavior makes sense to keep. -- 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]
