nir: Refactor code that checks phi nodes in opt_peel_loop_initial_if
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 14 Jan 2019 19:36:23 +0000 (11:36 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 8 Feb 2019 18:37:06 +0000 (10:37 -0800)
commit8d8f80af3a17354508f2ec9d6559c915d5be351d
tree7c5a452bbf7e76e75c7a4ba2df4c900a08d5d0a3
parent4d65d2b12ee261a3e37f197bcf5c4ac1807fc9d1
nir: Refactor code that checks phi nodes in opt_peel_loop_initial_if

This will be used in a couple more places soon.

The function name is... horribly long.  Neither Matt nor I could think
of any thing that was shorter and still more descriptive than
"is_phi_foo".  I'm willing to entertain suggestions.

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