diff options
author | Eric Anholt <[email protected]> | 2018-05-04 14:02:55 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-06-06 13:44:28 -0700 |
commit | 6a0db5f08ffac7d43a5b937982262f357a21f95b (patch) | |
tree | 62cb75c55c8ffacbb39d98d3c428198482b63b34 /src/compiler/nir/nir.h | |
parent | d4c7c3c225b7c34669498c15c2d3186cf6a4647e (diff) |
nir: Add lowering for find_lsb.
There is a fairly simple relation to turn this into ufind_msb.
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 9fca61f0070..b9426f8eb4e 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -1915,6 +1915,8 @@ typedef struct nir_shader_compiler_options { bool lower_bfm; /** Lowers ifind_msb to compare and ufind_msb */ bool lower_ifind_msb; + /** Lowers find_lsb to ufind_msb and logic ops */ + bool lower_find_lsb; bool lower_uadd_carry; bool lower_usub_borrow; /** lowers fneg and ineg to fsub and isub. */ |