cloog_domain_project: drop divs involving level
commitf6b9b7e17151786bb1bc049e306abb178dbdad99
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 23 Oct 2010 14:06:30 +0000 (23 16:06 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 27 Oct 2010 13:29:41 +0000 (27 15:29 +0200)
tree7fd87b968fd8a2227c606fbdd6fa70cbdd5bf982
parentf6117503ad00b0bbd0a1149d2a10cb415dba2f0c
cloog_domain_project: drop divs involving level

Commit 256fcba (clast.c: insert extra modulo guards involving loop iterator
inside loop, Wed Mar 11 09:33:53 2009 +0100) added code to detect modulo
constraints on the loop iterator to avoid bounds on loop depending on
floors of expressions involving the loop iterator itself.
However, this code was broken by 4171187 (source/clast.c: clean up insert_for,
Thu Jul 15 11:02:02 2010 +0200) as the constraints involved in the modulo
guards would no longer be removed from the set of constraints used to
construct the bounds of a loop.
Moreover, the original code only handled some special cases.

Here, we take a different approach and remove all integer divisions
that depend on the loop iterator inside cloog_domain_project.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl
source/clast.c
source/isl/domain.c
test/Makefile.am
test/isl/mod.c [new file with mode: 0644]
test/isl/mod.cloog [new file with mode: 0644]