nir/algebraic: Optimize low 32 bit extraction
authorSagar Ghuge <sagar.ghuge@intel.com>
Mon, 25 Feb 2019 19:43:53 +0000 (11:43 -0800)
committerSagar Ghuge <sagar.ghuge@intel.com>
Mon, 4 Mar 2019 23:50:25 +0000 (15:50 -0800)
commit47ec9bdc604cb91af5acdb8522972ede7872cf71
tree8039f42540f65080e806f33595631e61d8ac5cd1
parent1d8994a63b546a5b2dc4feb5bd98a84ee853d6af
nir/algebraic: Optimize low 32 bit extraction

Optimize a situation where we only need lower 32 bits from 64 bit
result.

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Suggested-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_opt_algebraic.py