rust-gpu/crates
Alex Es bca7656c8c
Added a transformation that gets rid of temporary composites. (#690)
* Added an optimization that gets rid of temporary composites.

Those temporary composites result from inlining of multi-argument
closures. Not only are they rather useless, they're also sometimes
invalid, when an argument to said closure is e.g. a pointer.

* Correctness fixes to transitive unused removal:

- delay only if the instruction is in reference set
- properly mark composites being inserted into composites as used

* cargo fmt

* clippy

* Make transformation per-function & rely on DCE for eliminating dead constructs.

* Forgot to mark CompositeInsert as pure & additional line cleaning

* Rustfmt

* Remove duplicate lines only once
2021-08-06 10:52:56 +02:00
..
rustc_codegen_spirv Added a transformation that gets rid of temporary composites. (#690) 2021-08-06 10:52:56 +02:00
spirv-builder Release v0.4.0-alpha.11 (#702) 2021-08-02 14:02:02 +00:00
spirv-std Release v0.4.0-alpha.11 (#702) 2021-08-02 14:02:02 +00:00