nir: create helper for fixing phi srcs when cloning
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 25 Aug 2016 03:00:57 +0000 (13:00 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 22 Dec 2016 23:15:36 +0000 (10:15 +1100)
commitd7813209748865d934528389c4aadc194bda8827
tree471ca9f804cdd8f81a435916cf3095ef337ab678
parentec8423a4b174450575152dfb3f9c80ba1b8729af
nir: create helper for fixing phi srcs when cloning

This will be useful for fixing phi srcs when cloning a loop body
during loop unrolling.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_clone.c