Lunderberg commented on PR #16462:
URL: https://github.com/apache/tvm/pull/16462#issuecomment-1908279842

   Would it be easier to fix the underlying issue in `FuseTIR`?  It looks like 
it should be doable by having [this 
loop](https://github.com/apache/tvm/blob/main/src/relax/transform/fuse_tir.cc#L883)
 maintain a copy of every function in `funcs_to_keep`, rather than a subset, 
then adding `DeadCodeElimination()` to [this list of 
passes](https://github.com/apache/tvm/blob/main/src/relax/transform/fuse_tir.cc#L1046).
  That way, `FuseTIR` keeps around all the original unfused functions, and it 
gets cleaned up by the dedicated pass afterwards.


-- 
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]

Reply via email to