isl_term_get_div: normalize result
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 30 Mar 2012 13:18:35 +0000 (15:18 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 17 Apr 2012 16:50:18 +0000 (18:50 +0200)
In particular, remove unused divs from the result.

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

index 6bccfba..80a7b1a 100644 (file)
@@ -3604,6 +3604,8 @@ __isl_give isl_aff *isl_term_get_div(__isl_keep isl_term *term, unsigned pos)
 
        isl_seq_cpy(aff->v->el, term->div->row[pos], aff->v->size);
 
+       aff = isl_aff_normalize(aff);
+
        return aff;
 }