nir: simplify phi handling in divergence analysis
authorDaniel Schürmann <daniel@schuermann.dev>
Wed, 5 Feb 2020 17:36:34 +0000 (18:36 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 May 2020 18:49:22 +0000 (18:49 +0000)
commit1b881f3d8e4c367049aeb376602525559ef09ed5
tree05f34d358c708e573b031983d7a02a02a345da17
parent450b1d87ba6bb41056f2ae8c576f98d6a70fa2e4
nir: simplify phi handling in divergence analysis

This patch adds some control flow information to the
state to keep track whether a loop contains divergent
continue or break statements to not having to
recalculate this property for every phi.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4062>
src/compiler/nir/nir_divergence_analysis.c