eliminate_dead_code: coalesce the set of "live" iterations
commita9964d95b2ef80c934305abaf0a176a95934e6d4
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 6 Feb 2013 13:20:24 +0000 (6 14:20 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 7 Feb 2013 08:24:05 +0000 (7 09:24 +0100)
tree93e8fa902df0ec1dcbe9ff3f2c0dc9867bdab6c8
parentcc9d06919238465a0a87ee883fbbfa530389606d
eliminate_dead_code: coalesce the set of "live" iterations

The set of exposed iterations and the set of iterations of statements
with a function call may overlap.  Since the union of these sets may
get intersected with the iteration domain, we want to remove duplicates
in this union.  Otherwise, the duplicates would also appear in the iteration
domain.  Since coalescing is a potentially expensive operation, we only
perform coalescing (and the union) if there are actually any
statements containing a function call.

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