isl_ast_build_set_loop_bounds: do not add stride constraint in eliminated case
commita8af2e98787a1191ed87613c179b1423b7514451
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 22 Jul 2014 09:10:56 +0000 (22 11:10 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 16 Aug 2014 14:07:26 +0000 (16 16:07 +0200)
tree2e1f43be48e8d8e7793cf87a6a71d17133defc2f
parent408016bdcc7dcd07280f5fe10d9657018d081227
isl_ast_build_set_loop_bounds: do not add stride constraint in eliminated case

We used to add the stride constraint unconditionally, but this meant
that we had to eliminate the current dimension from the build domain
if it turns out that the dimension has a fixed affine value.
Since we have this fixed value, there is no point in adding the
stride constraint since that information will never be used,
especially since we then eliminate the dimension from the stride constraint.
The result of this elimination could however get used and we had
to take special measures to ensure that this information is actually
enforced by the AST.

It is much simpler to not add the stride constraint to the build domain
in the first place.

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