From: Uros Bizjak Date: Wed, 17 Jul 2019 14:33:53 +0000 (+0200) Subject: i386.md (*andqi_2_maybe_si): Handle potential partial reg stall on alternative 2. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7dbb77712c20e1e04186d68377875a428b635f5;p=gcc.git i386.md (*andqi_2_maybe_si): Handle potential partial reg stall on alternative 2. * config/i386/i386.md (*andqi_2_maybe_si): Handle potential partial reg stall on alternative 2. From-SVN: r273551 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f13d8a6a9a4..5c69a63c18a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-07-17 Uroš Bizjak + + * config/i386/i386.md (*andqi_2_maybe_si): Handle potential + partial reg stall on alternative 2. + 2019-07-17 Richard Biener PR tree-optimization/91178 diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index eb32d7c1d2a..47e36d442f2 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -8689,7 +8689,7 @@ (match_operand:QI 1 "nonimmediate_operand" "%0,0,0") (match_operand:QI 2 "general_operand" "qmn,qn,n")) (const_int 0))) - (set (match_operand:QI 0 "nonimmediate_operand" "=q,qm,*r") + (set (match_operand:QI 0 "nonimmediate_operand" "=q,qm,r") (and:QI (match_dup 1) (match_dup 2)))] "ix86_binary_operator_ok (AND, QImode, operands) && ix86_match_ccmode (insn, @@ -8705,7 +8705,12 @@ return "and{b}\t{%2, %0|%0, %2}"; } [(set_attr "type" "alu") - (set_attr "mode" "QI,QI,SI")]) + (set_attr "mode" "QI,QI,SI") + ;; Potential partial reg stall on alternative 2. + (set (attr "preferred_for_speed") + (cond [(eq_attr "alternative" "2") + (symbol_ref "!TARGET_PARTIAL_REG_STALL")] + (symbol_ref "true")))]) (define_insn "*and_2" [(set (reg FLAGS_REG)