intel/compiler: Restructure live intervals computation code
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 10 Mar 2016 04:11:20 +0000 (20:11 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 6 Mar 2020 18:20:46 +0000 (10:20 -0800)
commitd7e84cbb0f0530bb3e065bd522e5e1814373f589
treeac1798c9f3656002a86496d74aeb831eada2173b
parent48dfb30f9231c22a6af6885dbc9ef86dc2edde1e
intel/compiler: Restructure live intervals computation code

This makes the structure of the vec4 live intervals calculation more
similar to the FS back-end liveness analysis code.  The non-CF-aware
start/end computation is moved into the same pass that calculates the
block-local def/use sets, which saves quite a bit of code, while the
CF-aware start/end computation is moved into a separate
compute_start_end() function as is done in the FS back-end.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4012>
src/intel/compiler/brw_vec4_live_variables.cpp
src/intel/compiler/brw_vec4_live_variables.h