nir/algebraic: Optimize comparing unpacked values
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 13 Jul 2019 04:26:48 +0000 (23:26 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 17 Jul 2019 18:44:35 +0000 (18:44 +0000)
commite8505e982a3f911440cad8a963313d2d62d27fc6
treebb8bb9296e4f4106e4d13a7ebeb001c64ff2361d
parent9fed031e4eb05a78888fb061a17eeb7346cc43d2
nir/algebraic: Optimize comparing unpacked values

We could, in theory, add the same optimization for 64-bit unpack
operations but that's likely to fight with 64-bit integer lowering on
platforms which require it so it will require more infrastructure before
that will be a good idea.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/nir/nir_opt_algebraic.py