From 5f7cf7f8691416afcdd4cad5b73e0f31e8763b55 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 29 Dec 2013 15:04:06 +0100 Subject: [PATCH] PetScan::extract_non_affine_condition: remove redundant resolve_nested Commit e8b1fa6 (PetScan::extract_non_affine_condition: resolve nested accesses, Fri May 18 13:03:19 2012 +0200) introduced two calls to resolve_nested, one on the expression and one on the scop. Since resolve_nested on a scop handles nested accesses in the iteration domains and the iteration domain is a universe set at this point, the second call appears to have been introduced by mistake. Remove it. Signed-off-by: Sven Verdoolaege --- scan.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scan.cc b/scan.cc index fafb20c..b807d69 100644 --- a/scan.cc +++ b/scan.cc @@ -3841,7 +3841,6 @@ struct pet_scop *PetScan::extract_non_affine_condition(Expr *cond, int stmt_nr, { struct pet_expr *expr, *write; struct pet_stmt *ps; - struct pet_scop *scop; SourceLocation loc = cond->getLocStart(); int line = PP.getSourceManager().getExpansionLineNumber(loc); @@ -3854,10 +3853,7 @@ struct pet_scop *PetScan::extract_non_affine_condition(Expr *cond, int stmt_nr, expr = resolve_nested(expr); expr = pet_expr_new_binary(ctx, pet_op_assign, write, expr); ps = pet_stmt_from_pet_expr(ctx, line, NULL, stmt_nr, expr); - scop = pet_scop_from_pet_stmt(ctx, ps); - scop = resolve_nested(scop); - - return scop; + return pet_scop_from_pet_stmt(ctx, ps); } extern "C" { -- 2.11.4.GIT