fix check for whether user statement domains should be saved
commita8cb7e19867982d15c2b5cf331385cfe68fcc536
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 6 May 2011 14:55:12 +0000 (6 16:55 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 7 May 2011 19:44:24 +0000 (7 21:44 +0200)
tree83ac9c202d490dd376f6893b528d87ca2d029ec1
parent0a76f6e6c84bee720d56246a91dfb63a4b918e51
fix check for whether user statement domains should be saved

5f6c710 (Optionally store domains of scattering dimensions in clast for,
Mon Nov 29 18:19:38 2010 -0500) introduced a test that would only
allow user statement domains to be saved if they entirely consisted
of scattering dimensions.  The test was wrong however.  In particular,
if code generation is stopped right after the last scattering dimension,
then the saved domain should be saved, but it was not because the nesting
level is one higher than allowed by the old test.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
source/loop.c