mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
nir: add another comparison simplification
On BDW: total instructions in shared programs: 13061877 -> 13060965 (-0.01%) instructions in affected programs: 133569 -> 132657 (-0.68%) helped: 566 HURT: 0 total cycles in shared programs: 256611784 -> 256599536 (-0.00%) cycles in affected programs: 861016 -> 848768 (-1.42%) helped: 379 HURT: 73 Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
3371de38f2
commit
1130f82a88
1 changed files with 2 additions and 0 deletions
|
|
@ -150,6 +150,8 @@ optimizations = [
|
|||
# inot(a)
|
||||
(('fge', 0.0, ('b2f', a)), ('inot', a)),
|
||||
|
||||
(('fge', ('fneg', ('b2f', a)), 0.0), ('inot', a)),
|
||||
|
||||
# 0.0 < fabs(a)
|
||||
# fabs(a) > 0.0
|
||||
# fabs(a) != 0.0 because fabs(a) must be >= 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue