intel/compiler: Move idom tree calculation and related logic into analysis object
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 10 Mar 2016 07:31:05 +0000 (23:31 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 6 Mar 2020 18:21:03 +0000 (10:21 -0800)
commitc2a7eababf568ecd23377408e5f837e3bb2e9943
treedf169583f4a1981974aecd7ae887a0f5f1752ce4
parent2878817197fe94fe0c20efdf2947d63576e3ea8a
intel/compiler: Move idom tree calculation and related logic into analysis object

This only does half of the work.  The actual representation of the
idom tree is left untouched, but the computation algorithm is moved
into a separate analysis result class wrapped in a BRW_ANALYSIS
object, along with the intersect() and dump_domtree() auxiliary
functions in order to keep things tidy.

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