summaryrefslogtreecommitdiff
path: root/gcc/graphite-sese-to-poly.c
diff options
context:
space:
mode:
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-25 06:47:34 +0000
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-25 06:47:34 +0000
commit041f1b343a876b88bd4c0c381c1c8de560f91450 (patch)
tree38618d1fe9b90be34a2932a99695d075940ebfd4 /gcc/graphite-sese-to-poly.c
parentfc2372d9f959f4a2577d16d6401a52d0762958de (diff)
downloadgcc-041f1b343a876b88bd4c0c381c1c8de560f91450.tar.gz
Do not create the temporary array for reductions into VAR_DECL, PARM_DECL, and RESULT_DECL.
2011-01-25 Sebastian Pop <sebastian.pop@amd.com> * 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
Diffstat (limited to 'gcc/graphite-sese-to-poly.c')
-rw-r--r--gcc/graphite-sese-to-poly.c5
1 files changed, 4 insertions, 1 deletions
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;