diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2019-09-02 12:54:31 -0500 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-09-09 09:14:38 -0700 |
commit | 3f56fa8fe9aa3df31b5712a89579168e07b314c7 (patch) | |
tree | ba511d46d857a9291909ac944baa7661a6f50165 /src/compiler/nir/nir_from_ssa.c | |
parent | 2c6e34ac9357a9acdf7dc59598e8f1863586bac8 (diff) | |
download | mesa-3f56fa8fe9aa3df31b5712a89579168e07b314c7.tar.gz |
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: mesa-stable@lists.freedesktop.org
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
(cherry picked from commit a3268599f3c9bb1d92571e15df95750a06114811)
Diffstat (limited to 'src/compiler/nir/nir_from_ssa.c')
0 files changed, 0 insertions, 0 deletions