From patchwork Sun Dec 22 16:24:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 852934 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp3036535wrq; Sun, 22 Dec 2024 08:32:34 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWy1zDGiiP2se3uiwJNIYxdZIFgX9ugKinQjiJdgusyWBuSSUQoL0l9QRuZQTmfQt+41nJ5mQ==@linaro.org X-Google-Smtp-Source: AGHT+IFYZe4fFypW/z1GSqlvC3BEekmSKtw9+6u/Ucp7CIcvvKqlvZoOD7PtLotC/2Ult6YzrVM+ X-Received: by 2002:a05:620a:2911:b0:7b6:d870:ca2d with SMTP id af79cd13be357-7b9ba716910mr1838098885a.13.1734885153956; Sun, 22 Dec 2024 08:32:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734885153; cv=none; d=google.com; s=arc-20240605; b=LnEi8ZTvv4ec1bYn5wygMJYzPuSDgc1BqTaT4Ch45duf5jAMQcsCjWIm0lRIMqfN2k C530SibuuC0NbojwLINGoJs1XUWar85R1/1UhlOOD7RhlfE8gYZDAljy4XtW8yK7X4fV 0/lqI8egQTIHhJyMrYDDnQLJjHXhZwwH9Gf6GvJZnhikmpwZUAAdaS8OoszgPM2yFsLr nlGN9cwaBg++cNxnnEUlqZGFMCzRoechROc29a9tjuXn32E9BCV6Kt5dLZYH8H2WXSgT SuEHo6suwCOb9o7Kb0jEK/JfClYLaCqZCOdDlp+mmYsbvbYvza6jQEXgOF9BUzq553mY B0TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZsTmh1MyHGCEig3rcyfPdQfk7lv1k6OuIXFBy9oIfbw=; fh=vm85eyWrvOAHduw3sqEA+cYBqvHB7M0MHFcRJg7VWOo=; b=lRT/2vzo8537olurTWaLKzYm2ZzNyzM0L5jX7/t/3j/DzNCPMNvzk5EUNnRTMHR2nb 2SNPb3cHMk7w1FCUuXUc1LAZZFZN7h1laX46bAdp/fMMAe5280HEM+Zu4BKJJ5Ua80w/ YZETQ8HEpMi+E4KYL6OJtt+qcSgiI4MiwbarWkFlChKHSMG3PdxbxDZ/No2ucnh/i3+/ PcH9COqBKC/89Nub2cwTCmU1jYMvlMmmG5QMNH1uYsSglLFIeyWdo3ifX3bWLX1c7l8q PyO3Q1FFHCuyGGpLR+Wo63LZHHCo1E3xHUkruotAGldpRW9z6UHZ/YWDrMUtU/BJPoog gz/A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sq6IRpgs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b9ac4786besi1026600385a.319.2024.12.22.08.32.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 22 Dec 2024 08:32:33 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sq6IRpgs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPOlv-0002x5-SF; Sun, 22 Dec 2024 11:25:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPOlY-0002fv-Qz for qemu-devel@nongnu.org; Sun, 22 Dec 2024 11:25:18 -0500 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPOlW-0003DS-9X for qemu-devel@nongnu.org; Sun, 22 Dec 2024 11:25:16 -0500 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-21644e6140cso32702305ad.1 for ; Sun, 22 Dec 2024 08:25:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734884712; x=1735489512; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZsTmh1MyHGCEig3rcyfPdQfk7lv1k6OuIXFBy9oIfbw=; b=Sq6IRpgsEtaszmnsxknWR/KCPJFZdFKizhbziI5YzXB9t3KHtvPtoW+wi/+4ahaDTD w//DkbJtVga9WYLCSC1mFVESFqs3P/pAG137pYIXUQINDM2CRYuFOo4Wh+jaR4TN3JPz q9HmE6sJo/GWlnxZS4hf4mMA4rvbB45VBGDF7FxhRIDTO2yDmrURdetmjXM8cJaTvg6x 32uKrlOgPZseuzG26mmn8WVBnHjHTsuleMCxTSjalLGHFlKKJziT/1Jjv2LfbaIfrMng Dfi5i+J3fPHzxaJR5TTyMdvx8CRhCzCI3o7DFCbusPJy2TxfWMw5Ei7JEmGjDX8yQYVz QPKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734884712; x=1735489512; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZsTmh1MyHGCEig3rcyfPdQfk7lv1k6OuIXFBy9oIfbw=; b=UjgmiipJS8k+bPUwDXxMtguuBSLAEei233lkanObUtstxUvxGvpWCRSGWRGe4Rk0Ba 3zh2NkLQcS/UXj/bkIoJqRUszUvHt9TyHll8K+bc1ssTGchM1FS/nbD911eRwf1Y3/wT BtdYwu4ej/h+s3UGMPZVSM0nIcsc8ccEmFwwhF16yMQ9s5emchVx40rpPmbda+af4w5h h2VtVnEUP8aj1wce3pIPX736wpqJmdK2snHE+yLW9XAkF+iQcMWvzjYH4fSdN1p5mn4Z zIWQUXPoLRTNwgzlujVu67khUcJ110Cyse/NEjWSMX+cs7KzLD68sfmsEeGMoxcOKmGJ oOxQ== X-Gm-Message-State: AOJu0Yzgbw3PEsModSax5UH+PlmM/PQpxucfEPp5M6EpXg4oQkfoFIns pwC9R3meyv2ZGwQIU2IG34QlkTcC+q67oElSdeTynBzXjavNnXg2BEjS5LHJSr9VR2xy6qM6a8d PH7s= X-Gm-Gg: ASbGnctanpVlk1cCcal8gVV1r6Qxyh7bwAxO3rOie6E0uGXQSJd9mMAWvV18LJIXywu zdELkGAMl6B9FLVItvzbxW075/7BavAIEX0lhY0Z6H7QxWkcU4xCJdcCWmwctpS67+hVGPcRRWK yH1ONiUK9d8wjyaN9/NfIZNehWVFfplOOaDpjUQEsgiYFKh2LsXMqhx1TH5jsPYPNVFnk2kcJ6C DxkUlUIjHgJCc24EF9yzNHqBr32Iq9WLJEkYS9NvV0r2U6FVVXwzXqV9IeFYn8= X-Received: by 2002:a17:902:dace:b0:216:3732:ade3 with SMTP id d9443c01a7336-219e6f25fd1mr128915725ad.35.1734884711877; Sun, 22 Dec 2024 08:25:11 -0800 (PST) Received: from stoup.. ([71.212.144.252]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc971814sm58461385ad.79.2024.12.22.08.25.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2024 08:25:11 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Pierrick Bouvier Subject: [PATCH v3 38/51] tcg/optimize: Use finish_folding in fold_cmpsel_vec Date: Sun, 22 Dec 2024 08:24:33 -0800 Message-ID: <20241222162446.2415717-39-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241222162446.2415717-1-richard.henderson@linaro.org> References: <20241222162446.2415717-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Reviewed-by: Pierrick Bouvier Signed-off-by: Richard Henderson --- tcg/optimize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/optimize.c b/tcg/optimize.c index db26cc347d..3f601e43a7 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -2484,7 +2484,7 @@ static bool fold_cmpsel_vec(OptContext *ctx, TCGOp *op) if (swap_commutative(op->args[0], &op->args[4], &op->args[3])) { op->args[5] = tcg_invert_cond(op->args[5]); } - return false; + return finish_folding(ctx, op); } static bool fold_sextract(OptContext *ctx, TCGOp *op)