From 3ee7a1f4f431790565eba5d0f10b3e1e8f0bee06 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 28 Aug 2011 09:36:59 +0200 Subject: [PATCH] isl_pw_qpolynomial_fold_bound: simplify construction of target space Signed-off-by: Sven Verdoolaege --- isl_bound.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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) -- 2.7.4