aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2007-10-02 01:30:46 +0000
committerAlexandre Oliva <aoliva@redhat.com>2007-10-02 01:30:46 +0000
commit025038955a87ad9acd4df743bb302efd58e6923d (patch)
treefec79d275f470628d188004731d441dbb5b5d1df /gcc
parent083919693e7b3e759cfbb6aaf40baae9b3267a17 (diff)
* tree-ssa-copyrename.c (copy_rename_partition_coalesce):
Permit coalescing of user variables. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/var-tracking-assignments-branch@128936 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog.vta5
-rw-r--r--gcc/tree-ssa-copyrename.c16
2 files changed, 5 insertions, 16 deletions
diff --git a/gcc/ChangeLog.vta b/gcc/ChangeLog.vta
index 12ef27f70b8..f13876a3a29 100644
--- a/gcc/ChangeLog.vta
+++ b/gcc/ChangeLog.vta
@@ -1,5 +1,10 @@
2007-10-01 Alexandre Oliva <aoliva@redhat.com>
+ * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
+ Permit coalescing of user variables.
+
+2007-10-01 Alexandre Oliva <aoliva@redhat.com>
+
* tree-ssa-live.c (remove_unused_scope_block_p): Don't change
generated code depending on -g. Reverts part of 2007-07-26's
patch.
diff --git a/gcc/tree-ssa-copyrename.c b/gcc/tree-ssa-copyrename.c
index c5526f66816..1bb73bbb8a3 100644
--- a/gcc/tree-ssa-copyrename.c
+++ b/gcc/tree-ssa-copyrename.c
@@ -190,22 +190,6 @@ 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 unless one is an inline
- variable. */
- if (!ign1 && !ign2)
- {
- 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. */
if (ann1->symbol_mem_tag
&& ann2->symbol_mem_tag