diff options
author | Eric Anholt <[email protected]> | 2015-07-31 09:12:48 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-08-04 17:19:25 -0700 |
commit | a70f63ab20d8bf922a307a92020237b1dec36314 (patch) | |
tree | 293c74a4cb43d7e4d8ff37bd839dbcc47b9381d9 /src | |
parent | 63eac5de8fd0e091d07f866a42584c057ca4bfa9 (diff) |
nir: Add algebraic opt for no-op iand.
I lazily generated some of these in VC4 NIR lowering.
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/nir/nir_opt_algebraic.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_opt_algebraic.py b/src/glsl/nir/nir_opt_algebraic.py index 3068445cbfe..d7c17403f9f 100644 --- a/src/glsl/nir/nir_opt_algebraic.py +++ b/src/glsl/nir/nir_opt_algebraic.py @@ -132,6 +132,7 @@ optimizations = [ # Logical and bit operations (('fand', a, 0.0), 0.0), (('iand', a, a), a), + (('iand', a, ~0), a), (('iand', a, 0), 0), (('ior', a, a), a), (('ior', a, 0), a), |