diff options
author | Alyssa Rosenzweig <[email protected]> | 2018-05-02 02:04:55 +0000 |
---|---|---|
committer | Christian Gmeiner <[email protected]> | 2018-05-18 22:44:09 +0200 |
commit | 5d85a0a55b8c061fa6644ac24163542e3025834c (patch) | |
tree | 4238fcc08e99f410588f3dec7498d4e86ddc1e03 /src/compiler/nir/nir_lower_drawpixels.c | |
parent | 8ed2cabd04c4697802f4d275f839640826e462ee (diff) |
nir: Implement optional b2f->iand lowering
This pass is required by the Midgard compiler; our instruction set uses
NIR-style booleans (~0 for true) but lacks a dedicated b2f instruction.
Normally, this lowering pass would be implemented in a backend-specific
algebraic pass, but this conflicts with the existing iand->b2f pass in
nir_opt_algebraic.py, hanging the compiler. This patch thus makes the
existing pass optional (default on -- all other backends should remain
unaffected), adding an optional pass for lowering the opposite
direction.
v2: Defer lowering until late algebraic optimisations to allow
optimising the b2f instruction itself.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_lower_drawpixels.c')
0 files changed, 0 insertions, 0 deletions