diff options
author | Jason Ekstrand <[email protected]> | 2019-04-13 10:35:07 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-04-16 16:40:15 +0000 |
commit | ba0f203ae82673ad050355e94386c849de7eaa92 (patch) | |
tree | a11e66b5b8be9deb7eccf3cc0786d612fbae97af /src/intel/common | |
parent | 0c712fd4042c91f715260fe5923e798372f38e1e (diff) |
nir/algebraic: Use a cache to avoid re-emitting structs
This takes the stupid simplest and most reliable approach to reducing
redundancy that I could come up with: Just use the struct declaration
as the cach key. This cuts the size of the generated C file to about
half and takes about 50 KiB off the .data section.
size before (release build):
text data bss dec hex filename
5363833 336880 13584 5714297 573179 _install/lib64/libvulkan_intel.so
size after (release build):
text data bss dec hex filename
5229017 285264 13584 5527865 545939 _install/lib64/libvulkan_intel.so
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/intel/common')
0 files changed, 0 insertions, 0 deletions