From 6acd1663e070ef1e5fafe4542a5eeb099784c227 Mon Sep 17 00:00:00 2001 From: rguenth Date: Mon, 6 Dec 2010 12:53:38 +0000 Subject: 2010-12-06 Richard Guenther PR tree-optimization/46806 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not coalesce different types. * g++.dg/torture/20100825.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167490 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-ssa-copyrename.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/tree-ssa-copyrename.c') diff --git a/gcc/tree-ssa-copyrename.c b/gcc/tree-ssa-copyrename.c index 41d43a6179c..abee6b9407f 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; } -- cgit v1.2.1