gpu.c: collect_order_dependences: extract out gpu_array_can_be_private
commit562aca4b65d8caf5636da92fc387386722f341aa
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 21 Mar 2016 09:15:53 +0000 (21 10:15 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 25 Mar 2016 11:59:34 +0000 (25 12:59 +0100)
tree5eeeda0c005bfb8d1354d3234f4cf6a215db0f2b
parentaff5528d74e8f5d6e0d718ef25a626d9780c5c83
gpu.c: collect_order_dependences: extract out gpu_array_can_be_private

The information about whether an array can be mapped to private
memory is used in both collect_order_dependences and
check_scalar_live_ranges_in_host, but it is determined in a slightly
different way.  Extract out a function for determining this information
from collect_order_dependences so that it can be reused in
check_scalar_live_ranges_in_host.
The extracted function will also make it easier to change the decision
about which arrays should be allowed to be mapped to private memory.

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