print_global_index: simplify expressions with respect to domain
commita319031e864288efbc795252e4f93aa6a04e02b6
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 9 Feb 2012 11:03:54 +0000 (9 12:03 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 9 Feb 2012 11:21:53 +0000 (9 12:21 +0100)
treeed726b27905f179519c6cf38b13239b78d99ea0e
parent75b60427c0f105b221ab587bc90cb0f2f55cdc99
print_global_index: simplify expressions with respect to domain

If an iterator has a fixed value, then no loop will be generated
and so we need to make sure that the expressions do not refer
to such an iterator.
We already perform such simplifications in print_local_index.

Reported-by: Carlos Juega Reimundez <cjuega@fdi.ucm.es>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
cuda.c