gpu_array_ref_group_type: take tile with minimal depth if both types exist
commitb926320d10bdc23df4947af8cc7fc324a50ee9a2
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 29 Jun 2015 09:17:53 +0000 (29 11:17 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 26 May 2016 12:49:01 +0000 (26 14:49 +0200)
tree4fa32f5fd010b1fa65c9281a616097e286d281a9
parent908089afa5eff55230c8ed82ec7a282a68d19b8e
gpu_array_ref_group_type: take tile with minimal depth if both types exist

If both a shared and a private tile can be computed, then the private tile
is preferred.  However, if the shared tile can be copied at a lower depth,
then the shared tile may be preferable.
This change is unlikely to make a difference at this point, but a future
commit will allow the mapping to shared memory to be computed at
a different initial depth.  If it is possible to compute such a shared
tile, then we do not want it to be discarded in favor of a private tile
that is computed deeper in the tree.

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