isl_basic_map_foreach_lexopt: normalize isl_affs
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 7 Feb 2012 11:26:20 +0000 (12:26 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 7 Feb 2012 12:00:21 +0000 (13:00 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_tab_pip.c

index 1a9f003..4764334 100644 (file)
@@ -4652,6 +4652,7 @@ static void sol_for_add(struct isl_sol_for *sol,
                        isl_int_set(aff->v->el[0], M->row[0][0]);
                        isl_seq_cpy(aff->v->el + 1, M->row[i], M->n_col);
                }
+               aff = isl_aff_normalize(aff);
                list = isl_aff_list_add(list, aff);
        }
        isl_local_space_free(ls);