-
Notifications
You must be signed in to change notification settings - Fork 975
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[naga] Remove unused types and global expressions in a single pass.
In compaction, correctly identify unused types and global expressions, rather than treating all global expressions referred to by `PendingArraySize::Expression` array lengths as used even if the array type itself is not. This is tested by checking that going from expression to type and back, along with the opposite, is correctly marked as used. It also checks that adding an unused type using an expression gets compacted out. See the comments on `ModuleTracer::type_expression_tandem` for details. Fixes #6788.
- Loading branch information
1 parent
0282d61
commit 3cd2e7c
Showing
4 changed files
with
381 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.