Skip to content

nir/algebraic: optimize min(max(a, 0) * b, 1) to fsat(a * b)

Rhys Perry requested to merge pendingchaos/mesa:nir_opt_min_mul_max into main

fossil-db (Sienna Cichlid):

Totals from 365 (0.28% of 128647) affected shaders:
VGPRs: 25328 -> 25336 (+0.03%)
CodeSize: 2614316 -> 2609820 (-0.17%); split: -0.17%, +0.00%
Instrs: 491583 -> 489276 (-0.47%)
Latency: 11124181 -> 11117385 (-0.06%); split: -0.06%, +0.00%
InvThroughput: 2135305 -> 2132277 (-0.14%); split: -0.14%, +0.00%
SClause: 16180 -> 16181 (+0.01%)
Copies: 20407 -> 20408 (+0.00%); split: -0.05%, +0.06%
PreVGPRs: 23016 -> 23031 (+0.07%)

Merge request reports