* combine.c (try_combine): Use reg_overlap_mentioned_p rather than
dead_or_set_p when computing i0_feeds_i2_n.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163546
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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. */