nir/lower_goto_ifs: Always include level dom_frontiers in prev_frontier
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 23 Sep 2020 20:54:08 +0000 (15:54 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 30 Sep 2020 16:46:11 +0000 (16:46 +0000)
commit57c9fc3cbaf59320d397df840d3004a58335aa04
tree1efaf7799ebe69ba1f78f37f9b791e3d94e7f40e
parent7749983658ec32ead48f0557d5661df91ca3a60c
nir/lower_goto_ifs: Always include level dom_frontiers in prev_frontier

When we come in from some other level or from the parent, we need to
ensure that the reach set is in prev_frontier but we also need to
consider the dominance frontier of our level.  Otherwise, we may end up
leaving out possible blocks when computing the reach of a level.

Acked-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6750>
src/compiler/nir/nir_lower_goto_ifs.c