schedule.c: split_parallel: avoid invalid memory accesses
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 30 Jan 2012 14:23:18 +0000 (15:23 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 30 Jan 2012 14:23:18 +0000 (15:23 +0100)
commit1b2fdb66ffd371c89f3ebeb0d06a3eef97a967ce
treeaed5dcf16535cdcbbb0d8ec571e94f994c1818e7
parent732fdbd0b5857a367bd7677f6756fe7d28841653
schedule.c: split_parallel: avoid invalid memory accesses

The original code incorrectly assumed that the schedules for
all statements have the same number of columns, i.e., that the
dimensions of the iteration domains of all statements are the same.

We fix this up by simply bailing out if we find this assumption not to hold.
We will improve the applicability of the transformation performed by
split_parallel in a subsequent patch.

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