[PATCH] Fix bootstrap on x86_64, PR44722

Richard Guenther rguenther@suse.de
Wed Jun 30 12:14:00 GMT 2010


We have two peephole2s that ping-pong happily after Bernds recent patch.

Bootstrapped and tested on x86_64-unknown-linux-gnu, committed.

2010-06-30  Richard Guenther  <rguenther@suse.de>

	PR target/44722
	* config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
	against oscillation with reverse peephole2.

Index: gcc/config/i386/i386.md
===================================================================
*** gcc/config/i386/i386.md	(revision 161594)
--- gcc/config/i386/i386.md	(working copy)
*************** (define_peephole2
*** 4729,4734 ****
--- 4729,4735 ----
     (set (match_operand:SSEMODEI24 2 "register_operand" "")
  	(fix:SSEMODEI24 (match_dup 0)))]
    "TARGET_SHORTEN_X87_SSE
+    && !(TARGET_AVOID_VECTOR_DECODE && optimize_insn_for_speed_p ())
     && peep2_reg_dead_p (2, operands[0])"
    [(set (match_dup 2) (fix:SSEMODEI24 (match_dup 1)))]
    "")



More information about the Gcc-patches mailing list