aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-copyrename.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-12-06 12:53:38 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-12-06 12:53:38 +0000
commitbbb9d2fd5c8f15120726b3da90f539dc25f509f5 (patch)
tree902219551516779dc5bb68148baa49a73d5f026b /gcc/tree-ssa-copyrename.c
parent6b7fb143ae06d180ae7723c41664db4a1f1d11d0 (diff)
downloadgcc-bbb9d2fd5c8f15120726b3da90f539dc25f509f5.zip
gcc-bbb9d2fd5c8f15120726b3da90f539dc25f509f5.tar.gz
gcc-bbb9d2fd5c8f15120726b3da90f539dc25f509f5.tar.bz2
re PR tree-optimization/46806 (-O3 implies 0 <= 8 <= 7)
2010-12-06 Richard Guenther <rguenther@suse.de> PR tree-optimization/46806 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not coalesce different types. * g++.dg/torture/20100825.C: New testcase. From-SVN: r167490
Diffstat (limited to 'gcc/tree-ssa-copyrename.c')
-rw-r--r--gcc/tree-ssa-copyrename.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-copyrename.c b/gcc/tree-ssa-copyrename.c
index 41d43a6..abee6b9 100644
--- a/gcc/tree-ssa-copyrename.c
+++ b/gcc/tree-ssa-copyrename.c
@@ -226,11 +226,11 @@ copy_rename_partition_coalesce (var_map map, tree var1, tree var2, FILE *debug)
ign2 = false;
}
- /* Don't coalesce if the two variables aren't type compatible. */
- if (!types_compatible_p (TREE_TYPE (root1), TREE_TYPE (root2)))
+ /* Don't coalesce if the two variables are not of the same type. */
+ if (TREE_TYPE (root1) != TREE_TYPE (root2))
{
if (debug)
- fprintf (debug, " : Incompatible types. No coalesce.\n");
+ fprintf (debug, " : Different types. No coalesce.\n");
return false;
}