freedreno/ir3: better cleanup when removing unused instructions
authorRob Clark <robdclark@chromium.org>
Sat, 4 Apr 2020 16:53:32 +0000 (09:53 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Apr 2020 20:47:28 +0000 (20:47 +0000)
commitcf74048fd14eb594dbb23e07d37cf8df44564263
tree03032680f2694593acd4bfb202aa5cdf60bb8031
parent96ff2a4099d0eb5c29255429a0e5284e461ec8d5
freedreno/ir3: better cleanup when removing unused instructions

Do a better job of pruning when removing unused instructions, including
cleaning up dangling false-deps.

This introduces a new ssa src pointer iterator, which makes it easy to
clear links without having to think about whether it is a normal ssa
src or a false-dep.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4440>
src/freedreno/ir3/ir3.h
src/freedreno/ir3/ir3_depth.c
src/freedreno/ir3/ir3_postsched.c
src/freedreno/ir3/ir3_print.c