Message ID | alpine.DEB.2.20.2311171416130.5892@tpp.orcam.me.uk |
---|---|
State | Unresolved |
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 i16csp1504907vqn; Sat, 18 Nov 2023 21:36:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjiaGJ9k4FpPXHlzvDDWG66OzrXSQut38+TtnTZF5d/umZXW/k9u5n3u3w3H14aI4kp8aN X-Received: by 2002:a05:622a:489:b0:418:134f:17f4 with SMTP id p9-20020a05622a048900b00418134f17f4mr5444991qtx.22.1700372205782; Sat, 18 Nov 2023 21:36:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700372205; cv=pass; d=google.com; s=arc-20160816; b=SHvKddPV+lJ8QCO89QM/3w3ae0aj8wkqFGKXSepRKlq2yHqaa6YnJgH/K6/8N2jUSp dK5X0ZPXFXrUemqaxXzQ8V48hiTbeNP+KSzbKm3m4kGBMLDLP8YAz9tcl435/npoqpIG yh8Xfd9KhuQJlBq/LLucYAOJqLqUCjubOWuNOAH6OtfO24JpEgbWnu3Wwo6UVXZMdzIJ brzHpahMQqxAjXH2bRyM1O376H6rD/EywyktkkcV8ij002OgfmDH7v0TwjeBSxH5fmfB 35tNfgmYSWGPs/9cFnCghBK9yAPPC/BBuxxcrQ/rv3LuXXrC8YsrA/1y+wwn5e+MjjmA Mo5g== 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=NXyjd7uqMS4QVcbiOSDFxXtXPOmlk8thxaaP6VwYu9U=; fh=dp1z4I3tVhinwswv7IAFxpunWK+Ws/fGQfmox9vHv3I=; b=HyXPzIDN7LpgfXikdyND3DOpmH4jyoptJJTIHi20mo9bWRZjYjSKTaBo1OR/2iyuaf Ig4YTECbRFdyDj4EGpN3XsSxE6/419LXHeYVkMbnXqS7c2b2qhLy4moONIr6OFfrGGl7 c+c0xT0e9ONCtxLhJQI5GhOUFE0fWQlyMyynCjB0TyV0avKbi/qzfsXFzl4vdf8L1I9M +AUF/9tL8Boh3Fyl6VYhi4LzRu/WfHORbhAoMiSUimBpAXY6MixVIPlwU/gHzH+az3RE RucdPjUkG/abSfD8GTB2R8L5UUfWNZ0ifhvBgHZMiagL0jivPWu4bXC5/AkeDqfdos8r G/Nw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=eMoXswgo; 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 b20-20020ac87fd4000000b00418225de9c2si5207210qtk.680.2023.11.18.21.36.45 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 21:36:45 -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=eMoXswgo; 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 83F37385783C for <ouuuleilei@gmail.com>; Sun, 19 Nov 2023 05:36:40 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id 0B89F3857C62 for <gcc-patches@gcc.gnu.org>; Sun, 19 Nov 2023 05:36:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0B89F3857C62 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 0B89F3857C62 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::535 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700372177; cv=none; b=eIY9/hHVuHaXwKi0JljTBTulHaaCuCysZUTNuYaFuGQoFVqKX5wAriEox0MJxzJVponC5gkGOcy6vdtRz8r2RPCmmNJp4ul1uBJH9piy7/yvOaLbch02H7n+zsKWtpcrRYbTB6bISalYZV8yoQsmXHz4BNa4Eu8mwBYHhQ2xn6Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700372177; c=relaxed/simple; bh=hTlpDMu0nzLU1gFomxqwENF0ne8cf06Q+ZUM5m9w0Ww=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=DlRK77Qlf67UQ4kkmc/EpLv9hKj99A/UhGiUll6LkPFUHluohkxfUd1OeXkTqr6Qj6tddgNDt46+SLI2NPgpf3QmoeIFsjPOPtKgpfDfV85NmrYF5iTnhyzyiL9FHhqDIFwJ7tdD2HPTKF3i6hPkQ09XK5Va9KX04AWyc3ENc44= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-54864b675b2so1664510a12.2 for <gcc-patches@gcc.gnu.org>; Sat, 18 Nov 2023 21:36:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1700372175; x=1700976975; 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=NXyjd7uqMS4QVcbiOSDFxXtXPOmlk8thxaaP6VwYu9U=; b=eMoXswgof0UmPsMWUFR+fgtJrONQT01X7Zo3cdDEhzZiwnYaP0I6FddvZpU20+JUs8 yjG0EDAcP9TrktCIV6/F+O4D2ZfqEjdOL4h0OcPl5kKok92nYTfTi4cYvw53GAgwK4ii e10Fdo881NOi7LwNesEbUBLKzvm0nug/rJHYLaVpDIJrpu4uqtwE7v++VE1UjyZrzyWa AcoiBIhevoCLc9aO1btsBxNNxk80r7MSLqc0VCcqzIfI4WiEA6VYaZWKa3ZQB8l8YrCw eVuqIfu5qOK+ALk0Ve+V4tAERJPPeZRqVSAegONCAJ2bnJw2JefKk2KGoLoBMOVGX93w fkiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700372175; x=1700976975; 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=NXyjd7uqMS4QVcbiOSDFxXtXPOmlk8thxaaP6VwYu9U=; b=EXQcTqbeFDkAI9sWP884DJB4hN4Ff4RgiGCRrAN6w8kXrIizn/fq628DJeTvKy6pQ5 VdnHaXAVq2ZXHcKxo5UEfYLHwv7OdWGp+Lpydj4EK2Eu1IaXzLfxGxRmBUFHF+kX7Ra/ J1D5Q7RMbfLgyjfAFcZDIyltyW7c3mlSL1MVwZ2A6QzS84H3SjBzkAkFsYE1mvyaH5uB N7j34K6gercFf7C8StaNR10G5D9cjaUFjvibgvCEpHX9IXjdiuxJ8WvYiWMYWXnFcN4V x9gsOX9H0CSobAtSf8wcAmk6F1yTPeaVKxYGHBDmC8S9yHEIU0Fdxzw86qBf5Z7E0XBu X4qw== X-Gm-Message-State: AOJu0Yyip4ZB2IP5AhqKxdqjn/oeJ2vyWnmBAZu6ApX2yZPomNbjhkea tIP8PMBX+9il4Eatli1WvUbZTgP6jwvXz0BsPTn5BQ== X-Received: by 2002:aa7:c249:0:b0:540:7e8:dd4f with SMTP id y9-20020aa7c249000000b0054007e8dd4fmr3269334edo.20.1700372174840; Sat, 18 Nov 2023 21:36:14 -0800 (PST) Received: from [192.168.219.3] ([78.8.192.131]) by smtp.gmail.com with ESMTPSA id h6-20020aa7de06000000b005489ecd06f6sm340799edv.38.2023.11.18.21.36.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Nov 2023 21:36:14 -0800 (PST) Date: Sun, 19 Nov 2023 05:36:12 +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 05/44] RISC-V: Fix `mode' usage in `riscv_expand_conditional_move' In-Reply-To: <alpine.DEB.2.20.2311171315580.5892@tpp.orcam.me.uk> Message-ID: <alpine.DEB.2.20.2311171416130.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=-1.8 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, URIBL_BLACK autolearn=no 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: 1782969486125365463 X-GMAIL-MSGID: 1782969486125365463 |
Series |
RISC-V: Various if-conversion fixes and improvements
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Maciej W. Rozycki
Nov. 19, 2023, 5:36 a.m. UTC
In `riscv_expand_conditional_move' `mode' is initialized right away from `GET_MODE (dest)', so remove needless references that refrain from using the local variable. gcc/ * config/riscv/riscv.cc (riscv_expand_conditional_move): Use `mode' for `GET_MODE (dest)' throughout. --- gcc/config/riscv/riscv.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) gcc-riscv-expand-conditional-move-mode-dest.diff
Index: gcc/gcc/config/riscv/riscv.cc =================================================================== --- gcc.orig/gcc/config/riscv/riscv.cc +++ gcc/gcc/config/riscv/riscv.cc @@ -3999,8 +3999,8 @@ riscv_expand_conditional_move (rtx dest, arm of the conditional move. That allows us to support more cases for extensions which are more general than SFB. But does mean we need to force CONS into a register at this point. */ - cons = force_reg (GET_MODE (dest), cons); - emit_insn (gen_rtx_SET (dest, gen_rtx_IF_THEN_ELSE (GET_MODE (dest), + cons = force_reg (mode, cons); + emit_insn (gen_rtx_SET (dest, gen_rtx_IF_THEN_ELSE (mode, cond, cons, alt))); return true; }