diff options
author | Matt Turner <[email protected]> | 2017-08-02 23:20:00 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2017-08-21 14:05:23 -0700 |
commit | a98b1a8922fa6990d0ab677770fc8ab6c9286a4b (patch) | |
tree | 235289c40b54f75356a25c6e5b5d335d06f77b8b /src/intel/compiler/brw_nir_trig_workarounds.py | |
parent | 91ef9490549567968a51bd8c68ebb60e47ebcdcb (diff) |
i965: Optimize reading the destination type
brw_hw_type_to_reg_type() needs to know only whether the file is
BRW_IMMEDIATE_VALUE or not, which is not a valid file for the
destination. gcc and clang will evaluate __builtin_strcmp() at compile
time, so we can use it to pass a constant file for the destination.
text data bss dec hex filename
7816214 346248 420496 8582958 82f72e i965_dri.so before
7816070 346248 420496 8582814 82f69e i965_dri.so after
Reviewed-by: Scott D Phillips <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_nir_trig_workarounds.py')
0 files changed, 0 insertions, 0 deletions