From b8fb3b6d32d55f6ce8c74e70ac3d669360161d55 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 30 Mar 2012 15:18:35 +0200 Subject: [PATCH] isl_term_get_div: normalize result In particular, remove unused divs from the result. Signed-off-by: Sven Verdoolaege --- isl_polynomial.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/isl_polynomial.c b/isl_polynomial.c index 6bccfba..80a7b1a 100644 --- a/isl_polynomial.c +++ b/isl_polynomial.c @@ -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; } -- 2.7.4