aco: Allow optimizing vote_all and nir_op_iand.
authorTimur Kristóf <timur.kristof@gmail.com>
Mon, 18 Nov 2019 15:11:19 +0000 (16:11 +0100)
committerTimur Kristóf <timur.kristof@gmail.com>
Tue, 14 Jan 2020 20:21:06 +0000 (21:21 +0100)
commit338d03090f9d20510eba0672d90943b8ecff64bc
tree0229f34a3690d112bb4b4e9cb6a698cd14cadb9e
parentd962bbd89528c540b86bd61d19677bda4d352ebe
aco: Allow optimizing vote_all and nir_op_iand.

By adding an extra instruction, we can replace the operands of
the s_cselect_b64, which allows it to get picked up by the
optimizer when it looks for uniform booleans.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
src/amd/compiler/aco_instruction_selection.cpp