make schedule_max_coefficient option work as advertised
commite35b2030459a1e7e18ba97ed757894e7559cc063
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 13 Apr 2016 13:38:24 +0000 (13 15:38 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 18 Apr 2016 10:56:48 +0000 (18 12:56 +0200)
tree470db325b8de464f474392a98d167e4a715b160a
parentac58b9936f5fd14f96711717071c98d3566192d9
make schedule_max_coefficient option work as advertised

The schedule_max_coefficient is documented as limiting the values
of the schedule coefficients to the given value.  However, the bound
was not actually being imposed on the schedule coefficients themselves,
but rather on some linear transformation of those coefficients.
The schedule coefficients themselves could therefore in theory end up
exceeding the bound.
Impose the bound on the actual schedule coefficients.
This is probably not all that important in the current state,
but in the future different bounds will be imposed on different coefficients
and in that case it is important that the bounds are imposed on
the correct coefficients.

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