diff options
author | Jason Ekstrand <[email protected]> | 2017-03-14 10:31:21 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-03-30 11:34:45 -0700 |
commit | 28e41506a6ee0631cf6ca04891dcb3adeff82f60 (patch) | |
tree | f66cedb05253861b48e97deeb935faf5ad15c950 /src/compiler/nir/nir_intrinsics.h | |
parent | b69b44d22203d9370ee8d750279e955d066a2bf3 (diff) |
nir/constant_expressions: Don't switch on bit size when not needed
For opcodes such as the nir_op_pack_64_2x32 for which all sources and
destinations have explicit sizes, the bit_size parameter to the evaluate
function is pointless and *should* do nothing. Previously, we were
always switching on the bit_size and asserting if it isn't one of the
sizes in the list. This generates way more code than needed and is a
bit cruel because it doesn't let us have a bit_size of zero on an ALU op
which shouldn't need a bit_size.
Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_intrinsics.h')
0 files changed, 0 insertions, 0 deletions