freedreno/ir3: move block-scheduling into legalize
authorRob Clark <robdclark@chromium.org>
Wed, 18 Dec 2019 22:04:36 +0000 (14:04 -0800)
committerMarge Bot <eric+marge@anholt.net>
Sat, 1 Feb 2020 02:40:22 +0000 (02:40 +0000)
commit304b50c9f8f57a115ac251f022093c8adfb0823d
tree3ed5106c595b1e0f369961b97d76e48d8bcffd1f
parent093c94456bc99308bd80bcc952d1f77ea71a831c
freedreno/ir3: move block-scheduling into legalize

We want to do this only once.  If we have post-RA sched pass, then we
don't want to do it pre-RA.  Since legalize is where we resolve the
branch/jumps, we might as well move this into legalize.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569>
src/freedreno/ir3/ir3.h
src/freedreno/ir3/ir3_delay.c
src/freedreno/ir3/ir3_legalize.c
src/freedreno/ir3/ir3_sched.c