nir/algebraic: Generalize an optimization
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 6 Dec 2018 18:56:33 +0000 (12:56 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Sun, 16 Dec 2018 21:03:02 +0000 (21:03 +0000)
commit615cc26b97ad520b90a8d3b3f9bdaa49c78dfda5
tree4ef5ec1591be5ffe8bcd5954462ae8bb359c6100
parent487514ae6120fd66d6b58cddea1c27b5fe8573e5
nir/algebraic: Generalize an optimization

This just makes it nicely scale across bit sizes.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/compiler/nir/nir_opt_algebraic.py