gpu.c: extract_grid_size: coalesce grid instead of coalescing grid size
commit4dbba436bed4aa5a48ff13873a84b0cb50022972
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 15 Feb 2016 09:28:21 +0000 (15 10:28 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 15 Feb 2016 09:28:21 +0000 (15 10:28 +0100)
treea645e332c6b135dcdf69538bea748b299de48daa
parent9cfeb9e203c74905629b9d5637b7ed359e38ac0d
gpu.c: extract_grid_size: coalesce grid instead of coalescing grid size

The grid is the result of a projection, so it may very well
have partly overlapping pieces.  Performing coalescing on this set
can result in fewer calls to isl_set_dim_max and will then typically
result in simpler output.  Coalescing this output should then no longer
be required.  Besides, it will be coalesced anyway when it is
converted to an AST expression.

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