OSDN Git Service

nir: Add some asserts that we don't put derefs in phis
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 11 Sep 2018 18:06:01 +0000 (13:06 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 19 Sep 2018 07:00:49 +0000 (02:00 -0500)
commit976046a8d8f9bed8f805d09ac5aebe63b81a71d9
tree4812fa365c551028db289300ee0b0780d4291449
parent864c780566b8782c4fc69b4337db768223717bd8
nir: Add some asserts that we don't put derefs in phis

The lcssa and phis_to_regs passes are used by various NIR optimizations
that modify the CFG.  Putting a couple of asserts will help ensure that
we don't accidentally put derefs in phis as part of an optimization
pass.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/nir/nir_from_ssa.c
src/compiler/nir/nir_to_lcssa.c
src/compiler/nir/nir_validate.c