diff options
author | Jason Ekstrand <[email protected]> | 2018-11-07 13:43:40 -0600 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-12-05 15:03:07 -0600 |
commit | dca6cd9ce65100896976e913bf72c2c68ea4e1a7 (patch) | |
tree | 069181199b9b4f00d8c44f1ae507412c28ccc81f /src/compiler/nir/nir_opt_if.c | |
parent | be98b1db3899121f2d0cea009ef6430b13589032 (diff) |
nir: Make boolean conversions sized just like the others
Instead of a single i2b and b2i, we now have i2b32 and b2iN where N is
one if 8, 16, 32, or 64. This leads to having a few more opcodes but
now everything is consistent and booleans aren't a weird special case
anymore.
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_opt_if.c')
-rw-r--r-- | src/compiler/nir/nir_opt_if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opt_if.c b/src/compiler/nir/nir_opt_if.c index 8a971c43f24..ab00f447097 100644 --- a/src/compiler/nir/nir_opt_if.c +++ b/src/compiler/nir/nir_opt_if.c @@ -509,7 +509,7 @@ can_propagate_through_alu(nir_src *src) case nir_op_ior: case nir_op_iand: case nir_op_inot: - case nir_op_b2i: + case nir_op_b2i32: return true; case nir_op_bcsel: return src == &alu->src[0].src; |