gpu_group_references: do not construct shared tile on force_private
commit37be9977d492915ec551f20bfd40c630d0672f2e
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 2 Jan 2017 14:48:22 +0000 (2 15:48 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 2 Jan 2017 14:48:22 +0000 (2 15:48 +0100)
treedfe8f174bcd5c0986967a9ceff92f60f4120d15f
parent978de779378226137c03647feff5f868b62788d0
gpu_group_references: do not construct shared tile on force_private

When an array is marked force_private, compute_group_bounds_core
always constructs a private tile.  It may however also construct
a shared tile, even if the array is marked force_private.
This did not cause problems before because the private tile
would be selected instead of the shared tile.
However, since b926320 (gpu_array_ref_group_type: take tile
with minimal depth if both types exist, Mon Jun 29 11:17:53 2015 +0200),
a shared tile may end up getting selected if it has a smaller depth.
In case of a force_private array, the computed depth of a shared tile
may not be meaningful, so do not construct the shared tile
in the first place to avoid this problem.

Reported-by: Michael Kruse <MichaelKruse@meinersbur.de>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
gpu_group.c