gpu.c: remove_local_accesses: restrict computation to useful part of dataflow
commit4da535270e56c2007c1242f324d30df07fca0c2c
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 8 May 2015 12:29:19 +0000 (8 14:29 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 11 May 2015 10:57:51 +0000 (11 12:57 +0200)
tree68563fcefe282468e9aa631447b99cb2b72cbd7a
parentec48fb596310a20e0e5e7b7516d9b63cb504b793
gpu.c: remove_local_accesses: restrict computation to useful part of dataflow

remove_local_accesses performs some computations on the "external"
dataflow dependences that in the end are used to restrict the given
set of accesses.  If there are many kernels, then a lot of this
computation is needlessly repeated over all those kernels.
Restrict the computation to that part of the dataflow dependences
that can actually influence the given set of accesses.
The computation can probably be optimized a lot further, but
this should be a reasonable first step.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
gpu.c