summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-09-02 12:54:31 -0500
committerJason Ekstrand <[email protected]>2019-09-06 23:39:01 +0000
commita3268599f3c9bb1d92571e15df95750a06114811 (patch)
tree6bd228dbd76cb9721f7a173eeeb2cf73b03e8891 /include
parentf81a2623d82ccad6177fe1fe5b80a6398df29b6e (diff)
nir/repair_ssa: Repair dominance for unreachable blocks
NIR currently assumes that unreachable blocks are trivially dominated by everything. However, when considering well-formed SSA, there is no path from any block to an unreachable block. Therefore, we can break any use-def chains where the use is in an unreachable block. This removes any dependencies on code created by uses in unreachable blocks and lets DCE do a better job of cleaning it up. Cc: [email protected] Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions