nir/algebraic: refactor inexact opcode restrictions
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 19 Sep 2019 10:10:27 +0000 (12:10 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 19 Sep 2019 16:57:27 +0000 (18:57 +0200)
commit5ed5e76741b93e687d3c90efd00eb8f2e2b91ead
tree3bab231e9358153e3d8ef4c12283a25ed09673d6
parent5b5c5bf8335b79c7c1152bbdf0956598d2246567
nir/algebraic: refactor inexact opcode restrictions

Refactor the code to avoid calling a lot of time to auxiliary functions
when it is not really needed.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/nir/nir_algebraic.py