ix86_expand_clear (operands[1]);
})
+;; When optimizing for size, zeroing memory should use a register.
+(define_peephole2
+ [(match_scratch:SWI48 0 "r")
+ (set (match_operand:SWI48 1 "memory_operand" "") (const_int 0))
+ (set (match_operand:SWI48 2 "memory_operand" "") (const_int 0))
+ (set (match_operand:SWI48 3 "memory_operand" "") (const_int 0))
+ (set (match_operand:SWI48 4 "memory_operand" "") (const_int 0))]
+ "optimize_insn_for_size_p () && peep2_regno_dead_p (0, FLAGS_REG)"
+ [(set (match_dup 1) (match_dup 0))
+ (set (match_dup 2) (match_dup 0))
+ (set (match_dup 3) (match_dup 0))
+ (set (match_dup 4) (match_dup 0))]
+{
+ ix86_expand_clear (operands[0]);
+})
+
+(define_peephole2
+ [(match_scratch:SWI48 0 "r")
+ (set (match_operand:SWI48 1 "memory_operand" "") (const_int 0))
+ (set (match_operand:SWI48 2 "memory_operand" "") (const_int 0))]
+ "optimize_insn_for_size_p () && peep2_regno_dead_p (0, FLAGS_REG)"
+ [(set (match_dup 1) (match_dup 0))
+ (set (match_dup 2) (match_dup 0))]
+{
+ ix86_expand_clear (operands[0]);
+})
+
+(define_peephole2
+ [(match_scratch:SWI48 0 "r")
+ (set (match_operand:SWI48 1 "memory_operand" "") (const_int 0))]
+ "optimize_insn_for_size_p () && peep2_regno_dead_p (0, FLAGS_REG)"
+ [(set (match_dup 1) (match_dup 0))]
+{
+ ix86_expand_clear (operands[0]);
+})
+
;; Reload dislikes loading constants directly into class_likely_spilled
;; hard registers. Try to tidy things up here.
(define_peephole2