isl_ast_build_ast_from_schedule: also add stride guard in generic case
commitf38d4c10e0f511ccf4fc5a91452ab3991480b500
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 19 Apr 2013 08:08:11 +0000 (19 10:08 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 22 Apr 2013 07:38:19 +0000 (22 09:38 +0200)
tree25247579560e93f15618e087acb4fa0213f9480c
parentd1fb914083bff444a77d4d8157f3948c1b3e7d57
isl_ast_build_ast_from_schedule: also add stride guard in generic case

Any guard implied by the stride constraint in the AST build domain
needs to be enforced by the generated AST and may not necessarily
be implied by the strided loop itself.
We were already adding this guard to the graft in the degenerate case,
but not in the generic case.

The implied guard is usually already available in loop bounds constraints,
so it is not clear if this fixes any bug that can appear in practice,
However, this may just be a consequence of the internal representation of sets
and we should not depend too much on this internal representation.

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