nir/opt_preamble: Walk cf_list manually
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 26 Jun 2023 21:38:30 +0000 (17:38 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 Oct 2023 13:51:00 +0000 (13:51 +0000)
commite065983dce2a5d8e9a0b32708febb37612f867b8
tree5c00b3470bd06dfd5a658aacc1a7cc833d3daf49
parent6576add3dc64586d3dd9dec1b6d86b4cdecf2d43
nir/opt_preamble: Walk cf_list manually

The way backends walk NIR when translating. This will make it easy to filter
can_move based on the parent control flow.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24011>
src/compiler/nir/nir_opt_preamble.c