cloog_loop_generate: don't project in "scalar" case
commiteb64adf1e62b60ae2f83cd9dbe77f1005f5e3c22
authorSven Verdoolaege <sven@cs.kuleuven.be>
Sat, 26 Dec 2009 09:33:57 +0000 (26 09:33 +0000)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 29 Dec 2009 20:07:54 +0000 (29 21:07 +0100)
treef375f9d6059fa7e1ab7db9aa00ed41d44c4c2b46
parent7561215726139fd5747a0f076dfd34e6c634892a
cloog_loop_generate: don't project in "scalar" case

Constant ("scalar") dimensions are treated specially, so there
is no need for any projection.  In fact, the original code would
perform projection for the non-constant dimension _following_ the
constant dimensions while handling the constant dimensions.
At the next level, projection would then be skipped.
This happens to work because constant dimensions are usually
followed by non-constant dimensions, but it breaks down
when there are no non-constant dimensions.

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