jinhongyii commented on PR #15807: URL: https://github.com/apache/tvm/pull/15807#issuecomment-1788190352
This PR has a bug when handling a use-def chain which ends at an impure call. Suppose the code is like ``` b = 2*a c = impure_call(b) return None ``` Then b is an unused var (by your definition), but not an impure call, so it will be removed, which breaks the program. -- 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]
