From patchwork Tue Dec 10 15:23:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 848749 Delivered-To: patch@linaro.org Received: by 2002:adf:ec08:0:b0:385:e875:8a9e with SMTP id x8csp383967wrn; Tue, 10 Dec 2024 07:25:36 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWKN7uNeyGyH6HO/kFxp+LGFTQ6qydUxcI7PbEDGvsgmQcvCKHibDbdqItOlQiajd7xk4CRQA==@linaro.org X-Google-Smtp-Source: AGHT+IH1a5GlG0fDVcOVHoEeVNojNaJMmQ8UQX+UzX10BD0XcEJzJv2v7SLtRFPJC1OXS2w9lrxu X-Received: by 2002:ad4:5c49:0:b0:6d8:9660:8877 with SMTP id 6a1803df08f44-6d91e376e95mr103267336d6.18.1733844336136; Tue, 10 Dec 2024 07:25:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733844336; cv=none; d=google.com; s=arc-20240605; b=bbbTOie8BkK/jHFHN2kiOwVzCFYdgO3MtnOObR34S4SI6s0TQU9yC+I331xSdfruFk yz6bgN3FUCYoZQGzinvHHiyxJW++3dOwKjryyr9FctVIDRQwQGjzx8AZY+JqIGw8SBjb 3EWjPEodYxkFaxx8IKK78qujKBR+83O2xcX9liouXHvcSvfWxMqpVBAsV5IgzVBinDdo MT97+VkBqFWzl5B0PN3EJVDh5x4E7VwPw3EFxzCK9+SNaJihhD5vsrEEdcwjP7shj12d +GmRVFrxHzrRArc7V9RaDW8VqOSFAfG/fo/ZOsp1M8urvmthq4B8RU9wnkFpfYDmuMcA Z+iw== 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:to:from :dkim-signature; bh=aaGiHH598Jl9FQV/d2zCwuAFTZLU17IFqMDcPvq6uL8=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=JrXVrIh6llmD5KUi6ntXZZStGYfLIOrmaDtYDrAQKhQuCAwnFspLUAcE3YaD9S/7QC Sad2lQo5zZZ/kin9TC2TDiYW26hi8UBmA09n+I5qh1/7aXt+sdTlRTl/jFhAdyPMB5x0 deUjFvDGuQHd2lWKdMOgbWPUbHHVMJNvVn/gE2Pynokuk4ZB8S0UaZldR6Cm68kp3Z9D J5A+kwzKYenUDsP4bVz4nj1TfpeobEDGA6fprjll3A5M5lIgLr0KzTE5tTlNArTd7MRO RNyiEnb6fx901GljeDXHKLkaymFL6DBfc59t8oCC7dn2ctp6/nD5fXdjwcx+rZ3vcJQW VOyQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FzVcsxy8; 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 6a1803df08f44-6d8fcedd5e0si96503476d6.72.2024.12.10.07.25.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Dec 2024 07:25:36 -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=FzVcsxy8; 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 1tL26m-0004wR-Dq; Tue, 10 Dec 2024 10:25:09 -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 1tL26Y-0004by-Ng for qemu-devel@nongnu.org; Tue, 10 Dec 2024 10:24:54 -0500 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tL26X-0008Pj-A2 for qemu-devel@nongnu.org; Tue, 10 Dec 2024 10:24:54 -0500 Received: by mail-oi1-x230.google.com with SMTP id 5614622812f47-3ea68fc1a7cso2448301b6e.0 for ; Tue, 10 Dec 2024 07:24:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733844292; x=1734449092; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=aaGiHH598Jl9FQV/d2zCwuAFTZLU17IFqMDcPvq6uL8=; b=FzVcsxy8JtWzb+YetDI7ycqUKM0SwBoDduwpEwMolupgmcDH2zcinzaSP3COGpy3z0 c/JJby9XE7LKg+qJXzO2hoIpIJ6jo5rl3iXir3madMiQDd7dDVBeqoWcUcS2kjDpiF+N d1ACYMIvqwge+TzGdFqz/VuPNMjIGZYV22uEl3+Wh8hZlsYNgFeOO5vQ7E+QWlY2HIsH xYZxMQcwkp4qpb9P/5mKijrdxReRuzFZp002mAKiB9xJr42sDoLOm/00cAvuEKjrWUfd QtWhUFXVSs9w3cp0q5cjttO61efsoxtrA6Bx8qe2HUvks1o6dqd58sJjnWiSqCj/4noD aYxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733844292; x=1734449092; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aaGiHH598Jl9FQV/d2zCwuAFTZLU17IFqMDcPvq6uL8=; b=b0MDMxMoWUgFZ3FL0oiMANnvnD2Ea6YiU98eOh0DEKwvyWx5eLb9eTx1Q2aDE0/JQL niWwkZhGfKW1dg+wBN3k9EY9KAXI+8w8ygLKSV0VpLL7VE1BwdMY/u9Ed53V+7HDOu0N CBvlK/scDgyipETqKYg1PmWOJD9eM25IC0d1+nt2mTCrD3ovfADq077I+RD9jiWWW3Dt I6sCyFLE1XEsgMlJlWQ0I3b8do5WahNEsZbWd41VEIJIxSZxOghcTlfiKwYS2xI79kjl PUh4lzb0f7rGpFymBF8pqvRkPXOQJO486IKQMM+60m/YP/ZBaN2MXyZH9Jc4GDcUTJUy p//A== X-Gm-Message-State: AOJu0YwisQXoNlJMdX8awpEPN283oADxjhYMuePzoFePMRfeit0w4to5 jBJLob+Obvh52vOvvDtJo+RdttkqDD57z67NeLZeW3Ac+c5fCJw4RjR9u7x+AkrXzE/k3mXR/z9 QOmcNVXVo X-Gm-Gg: ASbGnctO8CRNJiyG6u/fYEKqLoAWWP9GYbvlLOcitYHC+XgJxUQ8h0v1atpXpOPmdeo Pxne7LRVPKDiOgj/7Y+rPpDCFmzyoIJXyYYeu3zPAWlxJ9jY+vZVXHyoBvpu+MIowcFCc4aeb6x c23Lc+db9pHF6oizFNGSGcqNLS7DiU5+2BiA+i4j5Is+WWpC7UCbUevyW/zDtu1TGDdGrqdmhBN Qwg1rpf5TgaHvZs2r3Ow6btENqwpl9iAJ8dy+XHqt0bDc8YTr6p68LpB9TAvA== X-Received: by 2002:a05:6808:23cf:b0:3e6:2889:585e with SMTP id 5614622812f47-3eb66f6960emr2299528b6e.38.1733844292076; Tue, 10 Dec 2024 07:24:52 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3eb076b9168sm2776435b6e.14.2024.12.10.07.24.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2024 07:24:51 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 35/46] tcg/optimize: Use finish_folding in fold_cmpsel_vec Date: Tue, 10 Dec 2024 09:23:50 -0600 Message-ID: <20241210152401.1823648-36-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241210152401.1823648-1-richard.henderson@linaro.org> References: <20241210152401.1823648-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::230; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x230.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 Signed-off-by: Richard Henderson Reviewed-by: Pierrick Bouvier Reviewed-by: Pierrick Bouvier --- tcg/optimize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/optimize.c b/tcg/optimize.c index 30446baabd..c99e6f79d2 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -2483,7 +2483,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)