Files
mesa/src/util
Matt Turner dcf1d8d7a4 util: Replace recursive DFS with iterative implementation
Doesn't fix, but improves the situation in issue #5163. The
VK.spirv_assembly.instruction.graphics.spirv_ids_abuse.lots_ids_* tests
emit about 160k instructions. ir3_sched blows out the stack after
dag_traverse_bottom_up_node reaches a depth of about 130k frames.

This patch replaces the recursively-implemented post-order traversal
with an iterative implementation using a stack, allowing us to process
DAGs as large as memory can hold.

Definitely makes you appreciate the elegance of recursion...

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12232>
2021-08-17 17:54:09 +00:00
..
2021-08-14 21:44:32 +00:00
2021-08-17 17:54:09 +00:00
2021-05-02 20:38:28 +00:00
2020-09-25 20:09:08 +00:00
2021-08-14 21:44:32 +00:00
2020-08-31 09:14:57 +00:00
2021-08-17 17:54:09 +00:00
2020-10-27 15:33:40 -07:00
2020-12-02 10:12:27 -08:00
2020-12-01 07:11:44 +00:00
2020-08-21 18:22:21 +00:00
2020-11-10 15:37:07 +00:00
2020-11-11 06:08:15 +10:00
2021-02-22 00:30:46 +00:00
2021-05-10 15:34:07 +00:00
2021-05-10 15:34:07 +00:00
2021-02-19 11:05:38 +00:00
2020-05-13 23:36:44 +00:00
2020-05-13 23:36:44 +00:00
2021-08-14 21:44:32 +00:00
2020-12-01 10:04:41 +01:00