This is a common production of st_glsl_to_tgsi, which uses negate flags on source arguments to handle subtraction.
00a9aeb vc4: Add some optimization of FADD(FSUB(0, x)).
src/gallium/drivers/vc4/vc4_opt_algebraic.c | 31 +++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Upstream: cgit.freedesktop.org