nir/loop_unroll: Prepare loop for unrolling in wrapper_unroll
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Mon, 19 Aug 2019 15:13:12 +0000 (18:13 +0300)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 21 Aug 2019 10:43:27 +0000 (10:43 +0000)
commit84b3ef6a96eabc28b18e8cdf1b0d61826b1a8a67
tree50a9dd1c8900c00b4353d8b5a0b64f5d46c65dca
parent8869f44e9a8b53b008fc31583291446ad4d54497
nir/loop_unroll: Prepare loop for unrolling in wrapper_unroll

Without loop_prepare_for_unroll loops are losing phis.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111411
Fixes: 5db98195 "nir: add loop unroll support for wrapper loops"
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir_opt_loop_unroll.c