From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1363) id 98B273858402; Thu, 26 Aug 2021 15:27:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 98B273858402 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" From: Uros Bizjak To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-3162] [i386] Set all_regs to true in the call to replace_rtx [PR102057] X-Act-Checkin: gcc X-Git-Author: Uros Bizjak X-Git-Refname: refs/heads/master X-Git-Oldrev: e28ac73af20028f829c4ba1ffd38ea84e7419b0d X-Git-Newrev: 226eb7ff5d73669184a4a56cd348fa6c46b3ec52 Message-Id: <20210826152719.98B273858402@sourceware.org> Date: Thu, 26 Aug 2021 15:27:19 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2021 15:27:19 -0000 https://gcc.gnu.org/g:226eb7ff5d73669184a4a56cd348fa6c46b3ec52 commit r12-3162-g226eb7ff5d73669184a4a56cd348fa6c46b3ec52 Author: Uros Bizjak Date: Thu Aug 26 17:26:06 2021 +0200 [i386] Set all_regs to true in the call to replace_rtx [PR102057] We want to replace all REGs equal to FROM. 2021-08-26 Uroš Bizjak gcc/ PR target/102057 * config/i386/i386.md (cmove reg-reg move elimination peephole2s): Set all_regs to true in the call to replace_rtx. Diff: --- gcc/config/i386/i386.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 41d85623ad6..c80dcb57a18 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -19475,8 +19475,8 @@ (match_dup 0)))] { operands[7] = SET_DEST (XVECEXP (PATTERN (peep2_next_insn (1)), 0, 0)); - operands[8] = replace_rtx (operands[5], operands[0], operands[1]); - operands[9] = replace_rtx (operands[6], operands[0], operands[1]); + operands[8] = replace_rtx (operands[5], operands[0], operands[1], true); + operands[9] = replace_rtx (operands[6], operands[0], operands[1], true); }) ;; Eliminate a reg-reg mov by inverting the condition of a cmov (#2). @@ -19507,8 +19507,8 @@ (match_dup 0)))] { operands[7] = SET_DEST (XVECEXP (PATTERN (peep2_next_insn (2)), 0, 0)); - operands[8] = replace_rtx (operands[5], operands[0], operands[1]); - operands[9] = replace_rtx (operands[6], operands[0], operands[1]); + operands[8] = replace_rtx (operands[5], operands[0], operands[1], true); + operands[9] = replace_rtx (operands[6], operands[0], operands[1], true); }) (define_expand "movcc"