]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/45355 (FAIL: gcc.c-torture/compile/pr43164.c)
authorBernd Schmidt <bernds@codesourcery.com>
Wed, 25 Aug 2010 14:08:23 +0000 (14:08 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Wed, 25 Aug 2010 14:08:23 +0000 (14:08 +0000)
PR middle-end/45355
* combine.c (try_combine): Use reg_overlap_mentioned_p rather than
dead_or_set_p when computing i0_feeds_i2_n.

From-SVN: r163546

gcc/ChangeLog
gcc/combine.c

index a0bef4e60a896c1db1663863ec87b8f39254ab2c..e13577d06bace7963b9b5a041b493c562ea07bd1 100644 (file)
@@ -1,3 +1,9 @@
+2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
+
+       PR middle-end/45355
+       * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
+       dead_or_set_p when computing i0_feeds_i2_n.
+
 2010-08-25  Richard Guenther  <rguenther@suse.de>
 
        PR lto/44562
index 1f8e97007ee67ed17e8f2a8edfccaf006bd6553c..f144d1e8f2811c5ce281099dae94e8a1ad6780d1 100644 (file)
@@ -2862,7 +2862,7 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p)
   i1_feeds_i2_n = i1 && insn_a_feeds_b (i1, i2);
   i0_feeds_i1_n = i0 && insn_a_feeds_b (i0, i1);
   i0_feeds_i2_n = (i0 && (!i0_feeds_i1_n ? insn_a_feeds_b (i0, i2)
-                         : (!dead_or_set_p (i1, i0dest)
+                         : (!reg_overlap_mentioned_p (i1dest, i0dest)
                             && reg_overlap_mentioned_p (i0dest, i2src))));
 
   /* Ensure that I3's pattern can be the destination of combines.  */