Lunderberg opened a new pull request, #16116: URL: https://github.com/apache/tvm/pull/16116
Relax functions used as subroutines may receive a tuple of arguments, but only use a subset of the arguments provided. For externally-exposed functions, this is unavoidable, as the function signature may not be updated without breaking compatibility. For internal functions, all callsites are contained within the `IRModule`, and can be updated at the same time as the function signature. This PR implements `RemoveUnusedParameters`, which removes unused parameters from the function signature, if they occur within a private function. Together with `ExpandTupleArguments` implemented in https://github.com/apache/tvm/pull/16115, this handles partially-exposed tuple arguments for internal subroutines. -- 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]
