isl_pw_*_coalesce: sort function value expressions and always coalesce domains
commit0b8b1b27b33a24ca9a9973b1140b94beecc74c38
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 4 Mar 2016 09:47:10 +0000 (4 10:47 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 10 Mar 2016 14:40:28 +0000 (10 15:40 +0100)
tree35d85935b6ab791f40910f85ed06f66d06421ea0
parentf604e91d8988c8e41e738fd55c5df256b3b054d2
isl_pw_*_coalesce: sort function value expressions and always coalesce domains

isl_pw_*_coalesce would look for pieces with the same function value
expressions by comparing all pairs of entries.  Sort the pieces
based on the function value expressions instead such that only
successive pieces need to be checked.  In fact, isl_pw_*_sort
already does this check internally.
Also, isl_pw_*_coalesce would only coalesce the domains of pieces
that have been combined.  Coalesce all domains instead.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_pw_templ.c
test_inputs/codegen/cloog/equality.c
test_inputs/codegen/cloog/param-split.c
test_inputs/codegen/correlation.c