nir/search: Use nir_op_infos to determine if an operation is commutative
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 16 Dec 2014 20:26:38 +0000 (12:26 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:20:22 +0000 (07:20 -0800)
commite2a8f9e5ccb136f1e9460255054e34c11a41a422
tree9c2bb82419ccb15ed519aaa67ca8f958b089e05c
parent46f3e1ab504f016ab900c045f165a8376cf3fc0c
nir/search: Use nir_op_infos to determine if an operation is commutative

Prior to this commit, we had a big switch statement for this.  Now it's
baked into the opcode metadata so we can just use that.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir_search.c