nir: Select phi nodes using prev_block instead of continue_block
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 14 Jan 2019 23:12:36 +0000 (15:12 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 8 Feb 2019 18:37:06 +0000 (10:37 -0800)
commit0c0c69729b6d72a5297122856c8fe48510e90764
tree2119357812abe07c71030f4d5f6ccfb875b708f6
parent8d8f80af3a17354508f2ec9d6559c915d5be351d
nir: Select phi nodes using prev_block instead of continue_block

This simplifies some changes coming later.

Fixes: 8fb8ebfbb05 ("intel/compiler: More peephole select")
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir_opt_if.c