nir/dominance: Expose the dominance intersection function
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 6 Feb 2015 20:06:04 +0000 (12:06 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 20 Feb 2015 01:06:16 +0000 (17:06 -0800)
commitb4c5489c8ac12eb2c9881ba2d8bb745203affb7b
tree4aa2bf29b4e43c97940d0e71f6d2081a123693c9
parent6316c90cc0daa9e9476b00e3c52c51190e782c3f
nir/dominance: Expose the dominance intersection function

Being able to find the least common anscestor in the dominance tree is a
useful thing that we may want to do in other passes.  In particular, we
need it for GCM.

v2: Handle NULL inputs by returning the other block

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir.h
src/glsl/nir/nir_dominance.c