nir/algebraic: Clean up value range analysis-based optimizations
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 8 Aug 2019 23:48:14 +0000 (16:48 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 29 Aug 2019 20:15:52 +0000 (13:15 -0700)
commite07248d2a8605c202a292f59c4f44ee3debefc58
treed76b1f4b980990d542714fafd60c7ea40332976f
parentccb236d1bc6375bdf9bc47550bdfa348ea7369b9
nir/algebraic: Clean up value range analysis-based optimizations

Fix the a / b ordering in some compares.  Delete duplicate patterns.
Add a table explaining things.  While I was cleaning this up, I managed
to confuse myself.  The table helped sort that out.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir/nir_opt_algebraic.py