gpu.c: group_array_references: take into account "last_shared" for overlap
commit767e49000c32282e00259fb5b504b9098d95855e
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 7 Dec 2012 15:28:10 +0000 (7 16:28 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 10 Jan 2013 12:20:24 +0000 (10 13:20 +0100)
treed0d1233d54c80caa30f219e86cb9b2b38b23849d
parent06dc4c2bf5508ed77ec4070a46dd12b1de8ef4da
gpu.c: group_array_references: take into account "last_shared" for overlap

Two array references that have access some elements in common
and where one of the two is a write, should be considered as a single group.
When performing this test, we did not take into account that mapping
to/from shared/private memory may not happen at the innermost loop,
but may intead happen at an outer loop (as indiccated by "last_shared").

Check for overlapping writes again after computing "last_shared".

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