nir/gcm: be more conservative about moving instructions from loops
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 25 Mar 2019 08:38:54 +0000 (19:38 +1100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Apr 2020 03:46:29 +0000 (03:46 +0000)
commite4e5beee8a4cc0f7a6b27ce1ea1e04d1177442a1
tree2b6f53fe288342639360e295602e106f99d38529
parentbf4a6c99d242022e6ad42af68682609401ffcd73
nir/gcm: be more conservative about moving instructions from loops

Here we only pull instructions further up control flow if they are
constant or texture instructions. See the code comment for more
information.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4636>
src/compiler/nir/nir_opt_gcm.c