gpu: check reuse and access to consecutive elements within kernel
commit6f7722b7e20baf09b6ea703d44cb73907076a8ee
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 8 Dec 2013 16:57:09 +0000 (8 17:57 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 16 Apr 2015 07:00:35 +0000 (16 09:00 +0200)
tree95d73bc861981c95f420c1292514690e1df05c67
parente20b79898c93694e492d1a5f2d20690ac3a36528
gpu: check reuse and access to consecutive elements within kernel

Previously, we would consider reuse in the entire program, possibly
leading to incorrect decisions on whether to map data to shared
memory or registers.  Only consider reuse inside the given kernel.
Similarly for the check whether two consecutive elements are accessed.

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