nir/constant_expressions: Refactor helper functions
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 9 Mar 2017 04:23:05 +0000 (20:23 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 14 Mar 2017 14:36:40 +0000 (07:36 -0700)
commit9d559ba39dca49c30cdfc81e8fdfbefb06a05f2a
tree44110ce766a7f477a19125e7045dd02f9624af62
parent762a6333f21fd8606f69db6060027c4522d46678
nir/constant_expressions: Refactor helper functions

Apart from avoiding some unneeded size cases, this shouldn't have any
actual functional impact.

Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/nir/nir_constant_expressions.py