summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-reassoc.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-15 20:02:35 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-15 20:02:35 +0000
commit4623ec755fce667d2241f9f77e3306f807b71bbd (patch)
tree777dae5d1b33e63ce385fd840c2c6f31f98d5f22 /gcc/tree-ssa-reassoc.c
parentbeb3619b397cda4a2bc36d3b926b653fc67627fd (diff)
downloadgcc-4623ec755fce667d2241f9f77e3306f807b71bbd.tar.gz
2005-06-15 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/22024 * tree-ssa-reassoc.c (init_reassoc): Also give chain decl a distint rank. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100993 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-reassoc.c')
-rw-r--r--gcc/tree-ssa-reassoc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c
index 4f033e91070..68a29100b6b 100644
--- a/gcc/tree-ssa-reassoc.c
+++ b/gcc/tree-ssa-reassoc.c
@@ -230,6 +230,13 @@ init_reassoc (void)
insert_value_rank (def, ++rank);
}
}
+ /* Give the chain decl a distinct rank. */
+ if (cfun->static_chain_decl != NULL)
+ {
+ tree def = default_def (cfun->static_chain_decl);
+ if (def != NULL)
+ insert_value_rank (def, ++rank);
+ }
/* Set up rank for each BB */
for (i = 0; i < n_basic_blocks; i++)