From 041f1b343a876b88bd4c0c381c1c8de560f91450 Mon Sep 17 00:00:00 2001 From: spop 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169213 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 a7178efed94..35a231655f1 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.2.1