Message ID | alpine.DEB.2.20.2311171356430.5892@tpp.orcam.me.uk |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp1504851vqn; Sat, 18 Nov 2023 21:36:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIf3bxcb0GkOLHF9PlK9GcvRhE8R/3CEvj07/RTi0ZEoUrpBLDqwzY5SfBgOxejH0dD1kS X-Received: by 2002:a05:622a:44e:b0:403:2877:bc52 with SMTP id o14-20020a05622a044e00b004032877bc52mr4377526qtx.0.1700372188106; Sat, 18 Nov 2023 21:36:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700372188; cv=pass; d=google.com; s=arc-20160816; b=f64sjDnGBwMos48Y4Xiw+P7vMAbK3nVOrbBpZjldccNP/n0CQmh2SGBfhH6P094rsI ofKwvdD5Zw8oyFGa97Is2KeGTPTUu2b7qkMrJ0nxHqUrGne/yTDfmhxTfGR8QTEd4QyX QLdCIFV7xRG+2PmWRPJsX4G/uxxzGYp3Ae/fZKd22Zg/LXLfi4dMnj03RwmN27gxrQ2C rukN3NFtVC4uNqPtfPJuo0pf2q+VjFEfZWoAz36jdyjxsOpEwWqKvJQXLHq0i+AOKs7T PATcAJBLEhzYp7V+42JM/+hZDiLm1ZumZIR6P1gVsqx6cjhIMT3+vBrhn7r8eBk7AbMo 2ypA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=wH4bu/jKKb89z6Fj83atKeHXx9YC0lCsp8jziKl7lB0=; fh=dp1z4I3tVhinwswv7IAFxpunWK+Ws/fGQfmox9vHv3I=; b=W+iwlnd58GgzD8sRM3uWwNGMe4rZM526SL2DXHi3O8JEv1zrQVJ0sjJOArNwKOjL+p MqZwdBclndFuQRS367B/NMJA7SD9f8J4V/CPVld9Sbxp0ytHeoQUQfEF0hiGzcNg8iIX eBvp6rF2aKAnw25e/pH7KMLVfHK9QvX5bRXYf4Gx4my48HJ++9+2y2PO/3r5iQ8SaPMg fSJa2vKTdGtYrT7MhwY5mpnYF79URRhkaKtxOru7NhRgQE39zCZFYEiR6aszwX5LxQOi yX2pwzdGTrHEzjHA4Q/811Fslyngdgx6eAO8W59ssAUxB6da/VTpJ8Jy8W/bwSVAGStm 5nZg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=NJzpjDT3; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id b22-20020ac85bd6000000b0041cbf262514si5080122qtb.19.2023.11.18.21.36.28 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 21:36:28 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=NJzpjDT3; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3E0053858281 for <ouuuleilei@gmail.com>; Sun, 19 Nov 2023 05:36:23 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id CF11D3858D33 for <gcc-patches@gcc.gnu.org>; Sun, 19 Nov 2023 05:35:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CF11D3858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CF11D3858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700372159; cv=none; b=kKCSiLgNaoHXRmNVuaV5I9/6OHurUXvnnqeDNmZISk+kBKFBGRpy8uPNlRiQx97AzS8rz8+RrExpd/J7vLK7q6cq2sGufBnxh5BfA7Gy2fTUzvXSNY3dGtjVNgVacX5y0ZOm/nKvttteNeVRg0kZpR99Z7LuUri7HSHaoNpcB3M= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700372159; c=relaxed/simple; bh=yrtoFFdKNu2gA+85nWHp15cFAX/pgL2gvqIZC7Tx314=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=Ubj+vnfJWD45GMBMrNecuLn6z1Ljk/C8SzzU8AHxrayC2CfNRSPpp3OUvLPiIqtiRRE2joXeb+hGEXou1200DCeWq7/DSfgzJk/z4tR7F19ock3MCpD68WLBXZqF7LgTdgcG2M+EVs7lREJA/VzRIV+l7qSJMKoZsyQhPUlInPM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-9e623356e59so451131766b.0 for <gcc-patches@gcc.gnu.org>; Sat, 18 Nov 2023 21:35:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1700372155; x=1700976955; darn=gcc.gnu.org; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=wH4bu/jKKb89z6Fj83atKeHXx9YC0lCsp8jziKl7lB0=; b=NJzpjDT3gDd+G1dCFdOu+9wmrSqoxZDOiLZKq40M4zhF3YI8GqCZnaHMBWgALrO+Pk i4Eal2q748Ef60ImXTG9egazPeejspBbsdGBnPxYQTxPVqMULu94DoD/fnftWfof+pV6 JlVXJOIfMY1dUK/1se1Rx4YPhkPz2bipQHIhZFhUmpoSskxc8Cdb/EYhqPPOPICj9+gD dt2rlWxb3z9Fqnx/yg4lLKKJbxK6eLJJviBs4YFLsvIahu2QL6+hUtr7sWaTmI8HKaBU QNGYsWYieWBySf3T9aWNRJUMDW+NrdVRh0qTyLbosflxCU3XCBFJrtvElZmvIeWVw9U+ utAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700372155; x=1700976955; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wH4bu/jKKb89z6Fj83atKeHXx9YC0lCsp8jziKl7lB0=; b=PhcCCt9w9MM59m5Onx6O13oMv9SoFfgjWixnWfkt/G4UgCpv33EliR5FG8U+1wdgMI X74bB9eqTPCVNmJs0IttC9ssCRQbmkC0JivqkYi7hguZwsTFIrf2y026rLqSXC7QfcWE N1vXMD6SZGmRG4ofZE3BRxSZxxrk5DjlLjG0AHfKjDlFrSVoKNeFyuOXRVAQga7dJv69 NcZr/SwndfXvwbCYAckSE1wNkc6MEXHB/8sCaVFGIJOLKKBHt2+ryRPjxvf/87OAv1gm PCSkeJzBdx+wmbt1DZP7+ce61XR+qKKuDDGmGQzQi2XrUNanHp5zbf7tMbl2+fMc2v5a R0hg== X-Gm-Message-State: AOJu0YyDUogA5sa/OYUvtZ7epKGxIlCm7jeybcEpD67QZ4y4tDkBkX6i QfPdX9J9f9fVLBQLbLgr+vvgdA+IbWW5ts+68LFoWg== X-Received: by 2002:a17:906:221c:b0:9c7:5a14:ecf2 with SMTP id s28-20020a170906221c00b009c75a14ecf2mr3435615ejs.56.1700372155707; Sat, 18 Nov 2023 21:35:55 -0800 (PST) Received: from [192.168.219.3] ([78.8.192.131]) by smtp.gmail.com with ESMTPSA id y20-20020a170906471400b009db53aa4f7bsm2541186ejq.28.2023.11.18.21.35.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Nov 2023 21:35:55 -0800 (PST) Date: Sun, 19 Nov 2023 05:35:53 +0000 (GMT) From: "Maciej W. Rozycki" <macro@embecosm.com> To: gcc-patches@gcc.gnu.org cc: Andrew Waterman <andrew@sifive.com>, Jim Wilson <jim.wilson.gcc@gmail.com>, Kito Cheng <kito.cheng@gmail.com>, Palmer Dabbelt <palmer@dabbelt.com> Subject: [PATCH 03/44] RISC-V: Reorder comment on SFB patterns In-Reply-To: <alpine.DEB.2.20.2311171315580.5892@tpp.orcam.me.uk> Message-ID: <alpine.DEB.2.20.2311171356430.5892@tpp.orcam.me.uk> References: <alpine.DEB.2.20.2311171315580.5892@tpp.orcam.me.uk> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782969467301615028 X-GMAIL-MSGID: 1782969467301615028 |
Series |
RISC-V: Various if-conversion fixes and improvements
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Maciej W. Rozycki
Nov. 19, 2023, 5:35 a.m. UTC
Our `mov<mode>cc' expander is no longer specific to short forward branch targets, so move its associated comment accordingly. gcc/ * config/riscv/riscv.md (mov<mode>cc): Move comment on SFB patterns over to... (*mov<GPR:mode><X:mode>cc): ... here. --- gcc/config/riscv/riscv.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) gcc-riscv-sfb-comment-move.diff
Index: gcc-master/gcc/config/riscv/riscv.md =================================================================== --- gcc-master.orig/gcc/config/riscv/riscv.md +++ gcc-master/gcc/config/riscv/riscv.md @@ -2655,8 +2655,6 @@ [(set_attr "type" "branch") (set_attr "mode" "none")]) -;; Patterns for implementations that optimize short forward branches. - (define_expand "mov<mode>cc" [(set (match_operand:GPR 0 "register_operand") (if_then_else:GPR (match_operand 1 "comparison_operator") @@ -2671,6 +2669,8 @@ FAIL; }) +;; Patterns for implementations that optimize short forward branches. + (define_insn "*mov<GPR:mode><X:mode>cc" [(set (match_operand:GPR 0 "register_operand" "=r,r") (if_then_else:GPR