agx: Propagate fmov backwards as well
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 17 Apr 2021 15:13:32 +0000 (11:13 -0400)
committerAlyssa Rosenzweig <none>
Sun, 2 May 2021 21:41:16 +0000 (17:41 -0400)
commitb077a73bfe85ef01f10f0096a03e59989e1bdff9
treee75daeefe208bd9523a6e4a33388dda6326b2cdc
parent0f58e8dabe1ebcc4f9d2fe0a9d611c555bdd0646
agx: Propagate fmov backwards as well

Primarily for fsat. Also folds conversions but this is more of an
accident, and it doesn't do so optimally (due to the f2f16/f2f32
orientation issue outlined in the pass comments).

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10582>
src/asahi/compiler/agx_optimizer.c