gpu.c: skip GPU code if no statement instance is executed
commit9a409ad4234e68bfe4cb7f4509e033457c63eb9f
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 30 Jun 2013 08:50:56 +0000 (30 10:50 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 26 Jul 2013 11:45:52 +0000 (26 13:45 +0200)
tree943f8bdfaddfa4540989df525ead4e73e0bb4495
parent01c8d1d5e797be7a98e0bd38d380bb94acd82456
gpu.c: skip GPU code if no statement instance is executed

In particular, print a guard around the entire GPU code that expresses
that at least one statement instance is executed.  This guard is then
also added to the context of the code inside the guard, which may
result in some simplifications of the code.

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