clast construction: keep track of valid stride entries
commita9733e1858970f41ec49ad4676281292bdc14ed3
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 3 Jan 2011 17:30:10 +0000 (3 18:30 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 6 Jan 2011 11:53:00 +0000 (6 12:53 +0100)
treec1957bdb39971bba1d897051217ed17185f92255
parent9cf70272a14787fb0de3265222913766a8e9de81
clast construction: keep track of valid stride entries

insert_modulo_guard_constraint tries to exploit strides of outer
loops to simplify the constraint.  However, insert_modulo_guard_constraint
may have been called from within insert_extra_modulo_guards, in which
case the "level" may be strictly greater than the current loop level,
i.e., the number of valid entries in the strides array.
We therefore need to explicitly keep track of the number of valid
entries in that array.

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