diff options
author | Matt Turner <mattst88@gmail.com> | 2014-12-30 12:18:57 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2015-01-23 17:57:40 -0800 |
commit | 9a3a2942240065d85e197e04d9612af696b9ea99 (patch) | |
tree | 553b89976da6f065c5edc401cd5d3aaff00a2799 /src/mesa/drivers/x11/xm_tri.c | |
parent | d6317beb463e1e362562fd0353a99b4b080c136c (diff) |
i965/fs: Allow flipping cond mod for negated arguments.
This allows us to apply the optimization in cases where the CMP's
argument is negated, by flipping the conditional mod. For example, it
allows us to optimize this:
add(8) temp a b
cmp.l.f0(8) null -temp 0.0
into
add.g.f0(8) temp a b
total instructions in shared programs: 5958360 -> 5955701 (-0.04%)
instructions in affected programs: 466880 -> 464221 (-0.57%)
GAINED: 0
LOST: 1
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/x11/xm_tri.c')
0 files changed, 0 insertions, 0 deletions