You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "Lunderberg (via GitHub)" <gi...@apache.org> on 2023/11/13 17:35:43 UTC
[PR] [Unity][Transform] Keep R.ExternFunc in dead-code elimination [tvm]
Lunderberg opened a new pull request, #16118:
URL: https://github.com/apache/tvm/pull/16118
Prior to this commit, the `DeadCodeElimination` and `FuseTIR` passes treated `R.ExternFunc` differently with respect to removal of internal functions: `DeadCodeElimination` treated these functions as internal, to be removed if there are no internal callers, while `FuseTIR` treated these functions as external, to be retained in all cases.
Because the visibility of a function is determined by the `tvm::attr::kGlobalSymbol` attribute; which is present for `PrimFunc` and `relax::Function`, but missing for `relax::ExternFunc`; there is no information in the `IRModule` that can determine whether a `relax::ExternFunc` should be visible externally.
For consistency, and to allow the use of `DeadCodeElimination` in future refactors of `FuseTIR`, this commit updates `DeadCodeElimination` to retain instances of `relax::ExternFunc`.
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Unity][Transform] Keep R.ExternFunc in dead-code elimination [tvm]
Posted by "quic-sanirudh (via GitHub)" <gi...@apache.org>.
quic-sanirudh merged PR #16118:
URL: https://github.com/apache/tvm/pull/16118
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org