From: Sven Verdoolaege Date: Sun, 28 Aug 2011 07:36:59 +0000 (+0200) Subject: isl_pw_qpolynomial_fold_bound: simplify construction of target space X-Git-Tag: isl-0.08~127 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ee7a1f4f431790565eba5d0f10b3e1e8f0bee06;p=platform%2Fupstream%2Fisl.git isl_pw_qpolynomial_fold_bound: simplify construction of target space Signed-off-by: Sven Verdoolaege --- diff --git a/isl_bound.c b/isl_bound.c index 4017caa..b229de7 100644 --- a/isl_bound.c +++ b/isl_bound.c @@ -212,15 +212,12 @@ __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_bound( return NULL; bound.dim = isl_pw_qpolynomial_fold_get_space(pwf); - nvar = isl_space_dim(bound.dim, isl_dim_set); bound.wrapping = isl_space_is_wrapping(bound.dim); - if (bound.wrapping) { + if (bound.wrapping) bound.dim = isl_space_unwrap(bound.dim); - nvar = isl_space_dim(bound.dim, isl_dim_out); - bound.dim = isl_space_domain(bound.dim); - } else - bound.dim = isl_space_drop_dims(bound.dim, isl_dim_set, 0, nvar); + nvar = isl_space_dim(bound.dim, isl_dim_out); + bound.dim = isl_space_domain(bound.dim); if (nvar == 0) { if (tight)