From 7aa1da568f1452c7bc404e717e5b2fe68879e397 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 27 Jun 2013 11:36:49 +0200 Subject: [PATCH] PetScan::extract_conditional_assignment: use pet_expr_from_index Signed-off-by: Sven Verdoolaege --- scan.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scan.cc b/scan.cc index 061a7ec..70ebd5f 100644 --- a/scan.cc +++ b/scan.cc @@ -3474,7 +3474,7 @@ struct pet_scop *PetScan::extract_conditional_assignment(IfStmt *stmt) BinaryOperator *ass_then, *ass_else; isl_multi_pw_aff *write_then, *write_else; isl_set *cond, *comp; - isl_map *map; + isl_multi_pw_aff *index; isl_pw_aff *pa; int equal; struct pet_expr *pe_cond, *pe_then, *pe_else, *pe, *pe_write; @@ -3507,9 +3507,9 @@ struct pet_scop *PetScan::extract_conditional_assignment(IfStmt *stmt) nesting_enabled = save_nesting; cond = isl_pw_aff_non_zero_set(isl_pw_aff_copy(pa)); comp = isl_pw_aff_zero_set(isl_pw_aff_copy(pa)); - map = isl_map_from_range(isl_set_from_pw_aff(pa)); + index = isl_multi_pw_aff_from_range(isl_multi_pw_aff_from_pw_aff(pa)); - pe_cond = pet_expr_from_access(map); + pe_cond = pet_expr_from_index(index); pe_then = extract_expr(ass_then->getRHS()); pe_then = pet_expr_restrict(pe_then, cond); -- 2.11.4.GIT