gpu: avoid copying in data from local arrays
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 <e5350bbed4977f5eb8ae1dc6abd9ae59d21ace75@kotnet.org>

nicolasvasilache/ppcg,Meinersbur/ppcg,Meinersbur/ppcg,nicolasvasilache/ppcg