Skip to content

[Unity][Transform] Track callees from external functions in DeadCodeElimination#15561

Merged
csullivan merged 1 commit intoapache:unityfrom
Lunderberg:unity_track_external_callee_in_dce
Aug 25, 2023
Merged

[Unity][Transform] Track callees from external functions in DeadCodeElimination#15561
csullivan merged 1 commit intoapache:unityfrom
Lunderberg:unity_track_external_callee_in_dce

Conversation

@Lunderberg
Copy link
Copy Markdown
Contributor

Prior to this commit, the DeadCodeElimination pass avoided removing externally-exposed functions, only checked for callees from user-specified functions. If an external function wasn't specified, the dead-code elimination could remove a callee resulting in a dangling GlobalVar.

This commit updates the dead code elimination to treat all externally-exposed functions as potential entry points. User-specified functions can still be provided, and are treated as additional entry points.

Prior to this commit, the DeadCodeElimination pass avoided removing
externally-exposed functions, only checked for callees from
user-specified functions.  If an external function wasn't specified,
the dead-code elimination could remove a callee resulting in a
dangling `GlobalVar`.

This commit updates the dead code elimination to treat
all externally-exposed functions as potential entry points.
User-specified functions can still be provided, and are treated as
additional entry points.
@tvm-bot
Copy link
Copy Markdown
Collaborator

tvm-bot commented Aug 15, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@csullivan csullivan changed the title [Unity] Track callees from external functions in DeadCodeElimination [Unity][Transform] Track callees from external functions in DeadCodeElimination Aug 25, 2023
@csullivan csullivan merged commit 5d0ef94 into apache:unity Aug 25, 2023
@Lunderberg Lunderberg deleted the unity_track_external_callee_in_dce branch August 28, 2023 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants