nir: Allocate predecessor and dominance frontier sets from block itself.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 28 Mar 2015 04:29:07 +0000 (21:29 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 2 Apr 2015 21:20:02 +0000 (14:20 -0700)
commit7380c641b116a47d5729c553dcf3ed7143e877cc
treeea9a4c837f8ed0bbbfd513d40f378ce4bc8a204c
parent131444e1c5e08cbac4694489110ab53c9c07816d
nir: Allocate predecessor and dominance frontier sets from block itself.

These sets are part of the block, and their lifetime needs to match the
block itself.  So, allocate them using the block itself as the context.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir.c