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 <>
Reviewed-by: Caio Marcelo de Oliveira Filho <>
Reviewed-by: Kristian H. Kristensen <>
Reviewed-by: Ian Romanick <>
40 jobs for !2050 with issue-825 in 25 minutes and 28 seconds (queued for 4 seconds)
latest merge request