nir: Add a global code motion (GCM) pass
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 3 Feb 2015 18:11:23 +0000 (10:11 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 20 Feb 2015 01:06:17 +0000 (17:06 -0800)
commit190073c737a2a525be836179ab3a15e1119986fb
tree3a2c908016efd610530dadfbb1cbac680f2fc59b
parenta52a4b5223ec007d74e8a0277181929d3ba89c06
nir: Add a global code motion (GCM) pass

v2 Jason Ekstrand <jason.ekstrand@intel.com>:
 - Use nir_dominance_lca for computing least common anscestors
 - Use the block index for comparing dominance tree depths
 - Pin things that do partial derivatives

Reviewed-by: Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/Makefile.sources
src/glsl/nir/nir.h
src/glsl/nir/nir_opt_gcm.c [new file with mode: 0644]