Skip to content

r300: don't use abs twice in transform_TRUNC on older hardware

Filip Gawin requested to merge gawin/mesa:r300/abs_trunc into main
total instructions in shared programs: 27594 -> 27523 (-0.26%)
instructions in affected programs: 3594 -> 3523 (-1.98%)
helped: 61
HURT: 0
helped stats (abs) min: 1 max: 4 x̄: 1.16 x̃: 1
helped stats (rel) min: 1.16% max: 8.70% x̄: 2.55% x̃: 1.64%
95% mean confidence interval for instructions value: -1.29 -1.04
95% mean confidence interval for instructions %-change: -3.13% -1.97%
Instructions are helped.

Used max for abs, because I'm not sure what we want to do with lowering at the last step. (Print warning about missed optimization?)

CC @ondracka

Merge request reports