mirror of
https://gitee.com/openharmony/third_party_spirv-tools
synced 2024-11-23 07:20:28 +00:00
Update README.md with new code-reduction passes
This commit is contained in:
parent
f4b29f3bf7
commit
0bd8300fc2
28
README.md
28
README.md
@ -86,16 +86,28 @@ limits accepted by a more than minimally capable SPIR-V consumer.
|
||||
|
||||
### Optimizer
|
||||
|
||||
*Warning:* The optimizer is still under development.
|
||||
*Note:* The optimizer is still under development.
|
||||
|
||||
Currently supported optimizations:
|
||||
* Strip debug info
|
||||
* Set spec constant default value
|
||||
* Freeze spec constant
|
||||
* Fold `OpSpecConstantOp` and `OpSpecConstantComposite`
|
||||
* Unify constants
|
||||
* Eliminate dead constant
|
||||
* Inline all function calls in entry points
|
||||
* General
|
||||
* Strip debug info
|
||||
* Specialization Constants
|
||||
* Set spec constant default value
|
||||
* Freeze spec constant
|
||||
* Fold `OpSpecConstantOp` and `OpSpecConstantComposite`
|
||||
* Unify constants
|
||||
* Eliminate dead constant
|
||||
* Code Reduction (Entry Point Functions)
|
||||
* Inline all function calls exhaustively
|
||||
* Convert local access chains to inserts/extracts
|
||||
* Eliminate local load/store in single block
|
||||
* Eliminate local load/store with single store
|
||||
* Eliminate local load/store with multiple stores
|
||||
* Eliminate local extract from insert
|
||||
* Eliminate dead instructions (aggressive)
|
||||
* Eliminate dead branches
|
||||
* Merge single successor / single predecessor block pairs
|
||||
* Eliminate common uniform loads
|
||||
|
||||
For the latest list with detailed documentation, please refer to
|
||||
[`include/spirv-tools/optimizer.hpp`](include/spirv-tools/optimizer.hpp).
|
||||
|
Loading…
Reference in New Issue
Block a user