Skip to content

[Unity][Bugfix] Track variable usage from input to impure functions - #16036

Merged
tqchen merged 1 commit into
apache:unityfrom
Lunderberg:unity_bugfix_remove_unused_bindings
Nov 7, 2023
Merged

[Unity][Bugfix] Track variable usage from input to impure functions#16036
tqchen merged 1 commit into
apache:unityfrom
Lunderberg:unity_bugfix_remove_unused_bindings

Conversation

@Lunderberg

Copy link
Copy Markdown
Contributor

Prior to this commit, pure arguments to impure functions could be erroneously removed, if the impure function's result is unused. This commit updates the variable usage tracking in dead-code elimination to consider both function return values and arguments to impure functions as externally-exposed values.

Prior to this commit, pure arguments to impure functions could be
erroneously removed, if the impure function's result is unused. This
commit updates the variable usage tracking in dead-code elimination to
consider both function return values and arguments to impure functions
as externally-exposed values.
@tqchen
tqchen merged commit eb20534 into apache:unityNov 7, 2023
@Lunderberg
Lunderberg deleted the unity_bugfix_remove_unused_bindings branch November 7, 2023 15:12
Sign up for freeto 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.

2 participants

@Lunderberg@tqchen