nir/gcm: Add a real concept of "progress"
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 18 Jan 2017 02:38:39 +0000 (18:38 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Apr 2020 03:46:29 +0000 (03:46 +0000)
commitdca3f351e5b70afd1a0088b829f9b45617c2e538
treedd9d1ece0f3f8cb791ec2f9f22a01057b0f9df30
parent5b1615fdb75659cb02fcbcd684046eabdb807930
nir/gcm: Add a real concept of "progress"

Now that the GCM pass is more conservative and only moves instructions
to different blocks when it's advantageous to do so, we can have a
proper notion of what it means to make progress.

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