nir: Merge redudant integer clamping.
authorMarkus Wick <markus@selfnet.de>
Sat, 9 Apr 2016 01:31:16 +0000 (03:31 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 12 Apr 2016 01:48:50 +0000 (18:48 -0700)
commit18c8b927e205d7c8f2a04377b1fa3c4242074de1
tree341e3ace444dfa583dea30a92eab6e2f7b00468d
parentbfd17c76c1267756ea16051cbe174cb23ff49f44
nir: Merge redudant integer clamping.

Dolphin uses them a lot. Range tracking would be better in the long term,
but this two lines works fine for now.

Signed-off-by: Markus Wick <markus@selfnet.de>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_opt_algebraic.py