nir: Add a store_reg helper and use the builder in phis_to_regs
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 18 May 2020 23:40:58 +0000 (18:40 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 19:31:26 +0000 (19:31 +0000)
commitcc4a02d0ed0755c5cf7b75757b402ea81ce54c24
tree3a00b396e381d381bb99991c684598dd07d21891
parent3fdbeb70e1a1f98baa6a830901aab44ebd74c078
nir: Add a store_reg helper and use the builder in phis_to_regs

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5094>
src/compiler/nir/nir_builder.h
src/compiler/nir/nir_from_ssa.c