nir: keep the phi order when splitting blocks
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Sat, 26 Jan 2019 09:05:14 +0000 (01:05 -0800)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 5 Feb 2019 04:41:13 +0000 (20:41 -0800)
commit51547bbc5a6d889d1d1824c88ac7d0a4b172df55
tree0610aa58ab970b6587721b832b7e75828dc44193
parent38f542783faa360020b77fdd76b97f207a9e0068
nir: keep the phi order when splitting blocks

All things being equal is better to keep the original order.  Since
the new block is empty, push the phis in order to tail.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Daniel Schürmann <daniel.schuermann@campus.tu-berlin.de>
src/compiler/nir/nir_control_flow.c