diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-09 19:24:23 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-09 19:24:23 +0000 |
commit | 924eff81607944b725f3925512d4d385133ecd1d (patch) | |
tree | 1d7b5de48965fa8fb365adadd41cba047a4aa61e /gcc/tree-ssa-copyrename.c | |
parent | 621a93b17eebe77e830c5a5abd2cc61951bc1f93 (diff) | |
download | gcc-924eff81607944b725f3925512d4d385133ecd1d.tar.gz |
Revert:
2007-07-06 Alexandre Oliva <aoliva@redhat.com>
PR debug/23551
* tree-ssa-copyrename.c (copy_rename_partition_coalesce):
Disregard DECL_FROM_INLINE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126492 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-copyrename.c')
-rw-r--r-- | gcc/tree-ssa-copyrename.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gcc/tree-ssa-copyrename.c b/gcc/tree-ssa-copyrename.c index c0945d43453..812ebe19508 100644 --- a/gcc/tree-ssa-copyrename.c +++ b/gcc/tree-ssa-copyrename.c @@ -191,12 +191,20 @@ copy_rename_partition_coalesce (var_map map, tree var1, tree var2, FILE *debug) ign1 = TREE_CODE (root1) == VAR_DECL && DECL_IGNORED_P (root1); ign2 = TREE_CODE (root2) == VAR_DECL && DECL_IGNORED_P (root2); - /* Never attempt to coalesce 2 user variables. */ + /* Never attempt to coalesce 2 user variables unless one is an inline + variable. */ if (!ign1 && !ign2) { - if (debug) - fprintf (debug, " : 2 different USER vars. No coalesce.\n"); - return false; + if (DECL_FROM_INLINE (root2)) + ign2 = true; + else if (DECL_FROM_INLINE (root1)) + ign1 = true; + else + { + if (debug) + fprintf (debug, " : 2 different USER vars. No coalesce.\n"); + return false; + } } /* Don't coalesce if there are two different memory tags. */ |