array reference grouping: try grouping reads that overlap at tile depth
commit36e2cc51c896f6aa051be14e72e1885969a11a1c
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 29 Jun 2015 12:13:38 +0000 (29 14:13 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 4 Jul 2015 13:59:50 +0000 (4 15:59 +0200)
tree5e56ed2de12b16611fe54e8c223019726ce51547
parent1774f9a54cc67f27eadf03f3b17e19bf0e2b0208
array reference grouping: try grouping reads that overlap at tile depth

When checking whether two shared memory tiles can be combined to a single
smaller shared memory tile, the original code would only consider
pairs of tiles that have overlapping accesses at the innermost level.
It should be useful to also consider pairs of tiles that have overlapping
accesses at the level where they are currently being introduced.

The same test is also used for checking for overlapping writes,
so this function can now be reused.

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