nir/algebraic: Remove unnecessary iand of [iu]bfe and bfm sources
authorDaniel Schürmann <daniel.schuermann@campus.tu-berlin.de>
Fri, 25 Jan 2019 12:56:49 +0000 (13:56 +0100)
committerDaniel Schürmann <daniel@schuermann.dev>
Mon, 24 Jun 2019 16:42:20 +0000 (18:42 +0200)
commit4eeb49ea71e47899f5d9a51b8f3e1fd9762fa7ad
treedea58e707636cbf9fc89547643d4f5fcdcfc1602
parent165b7f3a4487e7ab7738dd9b37f2b3375692f8a2
nir/algebraic: Remove unnecessary iand of [iu]bfe and bfm sources

The [iu]bfe and bfm instructions are defined to only use the five
least significant bits.
This optimizes a common pattern from D3D -> SPIR-V translation.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/nir/nir_opt_algebraic.py