gpu: handle disappearing localized array sizes
commitd62cd5d60574c41204d89ec12632b047cfd6a4b9
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 22 Nov 2014 13:45:18 +0000 (22 14:45 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 13 Jan 2015 10:26:26 +0000 (13 11:26 +0100)
tree4d89ad4fb7f2609ac31a8d51d68fa6d09c15923c
parentcdda369fddf80e75f6f7a37407fa950ccab4211c
gpu: handle disappearing localized array sizes

The array sizes are localized within each instance of a launched kernel
in order to simplify the size expressions.  Some of the arrays that
are accessed by the statements that are mapped to this kernel may
not actually be accessed by a given instance in case the AST generator
has performed separation resulting in a given kernel being launched
several times.  In this case, the simplified size expressions will
simply be undefined and we cannot print them.  Replace the sizes
by zero instead.  Since the access will never actually be performed
by this kernel instance, it does not matter which array sizes we use.

Reported-by: Michael Kruse <reply@meinersbur.de>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
gpu.c