nir/algebraic: Fail build when too many commutative expressions are used
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 24 Jun 2019 22:12:56 +0000 (15:12 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 29 Jun 2019 01:56:19 +0000 (18:56 -0700)
commit8d6b35fffd70a967b143dbe670c65d25348b8f1b
treeee7b20e5b7cc7ed62eb89bf910545a8290819936
parent57704b8d225a6201de71c285b080fd42f45919a2
nir/algebraic: Fail build when too many commutative expressions are used

Search patterns that are expected to have too many (e.g., the giant
bitfield_reverse pattern) can be added to a white list.

This would have saved me a few hours debugging. :(

v2: Implement the expected-failure annotation as a property of the
search-replace pattern instead of as a property of the whole list of
patterns.  Suggested by Connor.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/compiler/nir/nir_algebraic.py
src/compiler/nir/nir_opt_algebraic.py
src/compiler/nir/nir_search.c