gpu: avoid copying in data from local arrays
commitcff19456fbd69048024c0dd7c84c7eee82ad68f0
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 8 Sep 2013 15:47:15 +0000 (8 17:47 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 18 Sep 2013 11:29:20 +0000 (18 13:29 +0200)
tree6af8d0ba35e1f7e4ef512d818af48edb99d47751
parent72fd974e8cd9f2ecf4066ec659fee6408bf01d85
gpu: avoid copying in data from local arrays

If an array that is local to the scop is read without first being written,
then there is no point in copying it in since it cannot have been
written prior to the scop.  Local arrays are not even declared in the host
code, so it is even impossible to perform the copying.
Warn about the uninitialized read instead.

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