Lunderberg opened a new pull request, #15854: URL: https://github.com/apache/tvm/pull/15854
The `KillAfterLastUse` pass that was implemented in https://github.com/apache/tvm/pull/15810 checked for trivial re-bindings in `VarBinding` nodes, but not in `MatchCast` nodes. As a result, `CodeGenVM`'s de-duplication of registers resulted in the object being killed prematurely. ```python y = R.match_cast(x, R.Tensor(...)) # Trivial rebinding here. # CodeGenVM has these share a register. R.memory.kill_tensor(x) # Kill x after last usage. # Register is set to None. _ = R.ExternFunc("set_item")(y) # Use of the cleared register through y. ``` -- 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]
