aco: simplify loop_nest_depth tracking in isel
authorRhys Perry <pendingchaos02@gmail.com>
Tue, 15 Dec 2020 14:30:06 +0000 (14:30 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Thu, 11 Mar 2021 15:35:24 +0000 (15:35 +0000)
commit8f71be0a7b91f71ccf4d88b4531198b079f6b027
treeb63c382e37d59b56639bfe5ae24c37988748d5cf
parent442fbcdb475d01f9288d625c5947e9f6d8d1148c
aco: simplify loop_nest_depth tracking in isel

Keep track of the current loop depth in Program and set the depth inside
Program::insert_block() instead of repeating it every time we insert one.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8994>
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_instruction_selection.h
src/amd/compiler/aco_instruction_selection_setup.cpp
src/amd/compiler/aco_ir.h