aco: create mads when signed zeros should be preserved
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 15 May 2020 13:24:12 +0000 (14:24 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 15 Jun 2020 18:24:22 +0000 (18:24 +0000)
commit6cb42cdd8fddb990ee47124c18a510f4da6e99ac
tree9a3bf84cc3cb5b24436571dc56e747b59bef9edc
parent1b6a319c15f3c63acb0384c47a94fb40f2aeb17d
aco: create mads when signed zeros should be preserved

This check was added because I thought v_mad_f32 didn't preserve the
signess of zero, but I can't reproduce that and this isn't mentioned
anywhere in LLVM.

No fossil-db changes.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5245>
src/amd/compiler/aco_optimizer.cpp