Patchwork Resubmit/ping: peephole2 vs cond-exec vs df

login
register
mail settings
Submitter Bernd Schmidt
Date July 1, 2010, 9:25 a.m.
Message ID <4C2C5F03.4060207@codesourcery.com>
Download mbox | patch
Permalink /patch/57494/
State New
Headers show

Comments

Bernd Schmidt - July 1, 2010, 9:25 a.m.
On 06/30/2010 05:48 PM, H.J. Lu wrote:

> I got bootstrap failure when configured with --with-cpu=atom:
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44727

Fixed.


Bernd

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 161655)
+++ ChangeLog	(working copy)
@@ -1,3 +1,9 @@ 
+2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
+
+	PR target/44727
+	* config/i386/i386.md (peephole2 for arithmetic ops with memory):
+	Make sure operand 0 dies.
+
 2010-07-01  Richard Guenther  <rguenther@suse.de>
 
 	PR middle-end/42834
Index: config/i386/i386.md
===================================================================
--- config/i386/i386.md	(revision 161655)
+++ config/i386/i386.md	(working copy)
@@ -17575,6 +17575,8 @@  (define_peephole2
 	    || GET_MODE (operands[0]) == HImode))
        || GET_MODE (operands[0]) == SImode
        || (TARGET_64BIT && GET_MODE (operands[0]) == DImode))
+   && (rtx_equal_p (operands[0], operands[3])
+       || peep2_reg_dead_p (2, operands[0]))
    /* We reorder load and the shift.  */
    && !reg_overlap_mentioned_p (operands[0], operands[4])"
   [(set (match_dup 5) (match_dup 4))