gpu: replace index expressions of unaccessed arrays by 0 pointers
commitcc1d9a840b9ea6a684450a6437582d3f4b8629fc
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 6 Dec 2014 08:53:33 +0000 (6 09:53 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 18 Feb 2015 16:27:41 +0000 (18 17:27 +0100)
treec97ec5cbc5645c6e8398c9e0752192a91f0af596
parentb604caecc7c926d05521dc9d3fc020de331e7d70
gpu: replace index expressions of unaccessed arrays by 0 pointers

This will make sure that the transformed code does not reference
these arrays such that we no longer need to allocate corresponding
device arrays.
Replacing the index expressions by 0 is safe since the value
of the index expression is not used to access anything.

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