summaryrefslogtreecommitdiff
path: root/gcc/ipa-struct-reorg.c
diff options
context:
space:
mode:
authorolga <olga@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-13 15:40:09 +0000
committerolga <olga@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-13 15:40:09 +0000
commit3992c686b6fdc7e7fdebb960dd21b52fe510a7c2 (patch)
treeb15b129aff072e320ebe89aff5463ed28bf07ea5 /gcc/ipa-struct-reorg.c
parent517b02860af00c3a34bdf6c1a499683a916496b4 (diff)
downloadgcc-3992c686b6fdc7e7fdebb960dd21b52fe510a7c2.tar.gz
2008-02-19 Alon Dayan <alond@il.ibm.com>
Olga Golovanevsky <olga@il.ibm.com> PR tree-optimization/35041 * gcc.dg/struct/wo_prof_double_malloc.c: New test. 2008-03-13 Alon Dayan <alond@il.ibm.com> Olga Golovanevsky <olga@il.ibm.com> PR tree-optimization/35041 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option to locate the right position in a statement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133171 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-struct-reorg.c')
-rw-r--r--gcc/ipa-struct-reorg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-struct-reorg.c b/gcc/ipa-struct-reorg.c
index 514b9a22898..515dba67206 100644
--- a/gcc/ipa-struct-reorg.c
+++ b/gcc/ipa-struct-reorg.c
@@ -887,7 +887,7 @@ find_pos_in_stmt_1 (tree *tp, int *walk_subtrees, void * data)
tree ref = r_pos->ref;
tree t = *tp;
- if (t == ref)
+ if (t == ref || (TREE_CODE (t) == SSA_NAME && SSA_NAME_VAR (t) == ref))
{
r_pos->pos = tp;
return t;