agx/lower_address: Break on match
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 7 Mar 2023 02:15:25 +0000 (21:15 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 7 Mar 2023 02:58:35 +0000 (02:58 +0000)
commitdccf6f569b6ef63ec20600d844638e561270d6df
tree5baf16b290788dfd240a4e2475ce16f9c4a7dfcf
parent36f6eb88cb6efae9713e3f818725f888b0061cd8
agx/lower_address: Break on match

Once we've matched a summand, commit to it. This avoids needlessly checking the
second source if the first matched, and removes some indentation/funny control
flow.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21643>
src/asahi/compiler/agx_nir_lower_address.c