aco: simplify multiply-add combining

Graphics / Mesa 3D Graphics Library / Mesa - Daniel Schürmann [schuermann.dev] - 13 January 2021 17:46 UTC

When both operands of a v_sub (same apply for v_add) are mul and one already uses clamp/omod, pick the other operand to get a chance to combine to a MAD.

No fossils-db changes.

01134b0bfe4 aco: simplify multiply-add combining
src/amd/compiler/aco_optimizer.cpp | 84 ++++++++++++++++----------------------
1 file changed, 36 insertions(+), 48 deletions(-)

Upstream: cgit.freedesktop.org


  • Share