tree2scop.c: scop_from_affine_for: remove preallocation of statement number
commitc7940c34040da9f494841b8628f478be09e0db77
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 2 Jan 2014 08:21:40 +0000 (2 09:21 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 25 Mar 2014 13:36:26 +0000 (25 14:36 +0100)
tree595305bab66024ea16501701dff566425b1ffa98
parentb3a9acf6cf9c26c3e41a82a40ad7d0dae49972b2
tree2scop.c: scop_from_affine_for: remove preallocation of statement number

Before the previous commit, we would extract a scop for the body
before extracting a scop for the non-affine condition (if any).
Since we wanted the statement number of the statement evaluating
the non-affine condition to be smaller than the statement numbers
of the statements in the body, we would preallocate a statement number.
Now that we extract a scop from the body after extracting the scop
for the non-affine condition, this preallocation is no longer needed.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
tests/dynamic_bound.scop
tree2scop.c