summaryrefslogtreecommitdiffstats
path: root/src/glsl/opt_flip_matrices.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2015-01-19 14:57:38 -0800
committerKenneth Graunke <[email protected]>2015-01-23 14:53:26 -0800
commit3e56572c498bea3c41692c80c242883373dab42a (patch)
treedf1b4d5f32695785a5672c6d8fd0a16de2dedd0a /src/glsl/opt_flip_matrices.cpp
parent978b0a9cda925ee903028b92f6654e610608a5ba (diff)
nir: Add a bunch of algebraic optimizations on logic/bit operations.
Matt and I noticed a bunch of "val <- ior a a" operations in a shader, so we decided to add an algebraic optimization for that. While there, I decided to add a bunch more of them. v2: Delete bogus fand/for optimizations (caught by Jason). total NIR instructions in shared programs: 2023511 -> 2020814 (-0.13%) NIR instructions in affected programs: 149634 -> 146937 (-1.80%) helped: 1032 total i965 instructions in shared programs: 6035392 -> 6035397 (0.00%) i965 instructions in affected programs: 537 -> 542 (0.93%) HURT: 2 Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/opt_flip_matrices.cpp')
0 files changed, 0 insertions, 0 deletions