The GLSL IR optimization pass contained these; we may as well include them too.
v2: Fix a >> 0 and a << 0 optimizations (caught by Matt).
No change in the number of NIR instructions on a shader-db run.
total i965 instructions in shared programs: 6035397 -> 6035392 (-0.00%) i965 instructions in affected programs: 542 -> 537 (-0.92%) helped: 2 (in glamor)
551a752 nir: Add algebraic optimizations for pointless shifts.
src/glsl/nir/nir_opt_algebraic.py | 7 +++++++
1 file changed, 7 insertions(+)
Upstream: cgit.freedesktop.org