From 3d17df15625aeebc41fa2e22b47e33eb2d216041 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Tue, 25 Jan 2011 06:47:34 +0000 Subject: Do not create the temporary array for reductions into VAR_DECL, PARM_DECL, and RESULT_DECL. 2011-01-25 Sebastian Pop * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow VAR_DECL, PARM_DECL, and RESULT_DECL. * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed. From-SVN: r169213 --- gcc/graphite-sese-to-poly.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/graphite-sese-to-poly.c') diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index a7178ef..35a2316 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -2968,7 +2968,10 @@ close_phi_written_to_memory (gimple close_phi) && gimple_code (stmt) == GIMPLE_ASSIGN && (res = gimple_assign_lhs (stmt)) && (TREE_CODE (res) == ARRAY_REF - || TREE_CODE (res) == MEM_REF)) + || TREE_CODE (res) == MEM_REF + || TREE_CODE (res) == VAR_DECL + || TREE_CODE (res) == PARM_DECL + || TREE_CODE (res) == RESULT_DECL)) return res; return NULL_TREE; -- cgit v1.1