Skip to content

nir: Mark negative re-distribution on fadd as imprecise

Faith Ekstrand requested to merge gfxstrand/mesa:nir/fadd-fneg-redist into main

Otherwise, it would mutate fneg(fadd(-0, 0)) into fadd(0, -0) which isn't correct since -0 + (+0) = +0 + (-0) = +0.

This fixes the OpenCL contraction tests on Iris.

Merge request reports