From patchwork Sun Dec 22 16:24:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 852921 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp3035557wrq; Sun, 22 Dec 2024 08:30:39 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVVhyWk1duYaqDrDNRv3RJ78Jx/oW0gitx7g2yB/tdjQjCq7FWqR9/BduiPExsp0l9oeRkZdw==@linaro.org X-Google-Smtp-Source: AGHT+IG3XjiW70PM1MlWE84e+JO6BdAIcZ6U5/dW0Fg9/R3EYTHcVyuJaqd53MJKitFYgicnxL7/ X-Received: by 2002:a05:6214:252b:b0:6dc:c8bc:f913 with SMTP id 6a1803df08f44-6dd155cf3c6mr205644166d6.15.1734885039194; Sun, 22 Dec 2024 08:30:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734885039; cv=none; d=google.com; s=arc-20240605; b=DC80SPUBA7NsB1IcAWaFYHVG8uOeCK57qC2RnRR7MGA3u6qOE5/bKW1Em8Xj2q2oKj GzCyIqa6JzPHrJ9Yhj5mnkOlo6BIBRElKnP3lWBOd8sMttoGyQw6PddIRe5vm5Zr4AKi rb8aIvBU7u3MaAgxKwDlpOWJ9xHkibM8d7tn5AEi0oFwm8XKFSlJ22U4gZiLz3L7Sco+ XvI/GlBN4q+lV4GxUgMYCsesu/Pb+JWe+sE0Mzlc8fBb+tMvVNrjG8VOuyk3e8JnA0D1 5R2aDlyCKQJ6Bnc6Mr89MZS99mP2WZkX1FgEj+BZfn20rg7BDs5k1VVVM6vdS2mGmUR4 w7kQ== 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=MHMMCbrUVSen8mtbKytkDiC9qapK9hvp01hmIO9UtbI=; fh=vm85eyWrvOAHduw3sqEA+cYBqvHB7M0MHFcRJg7VWOo=; b=QZCmBDCiHKj2Zp7oLYtl20iuVtkFkhaa+rWSZbj71kJSrAly2LEx1STcKWEXQpL57m /UEBij0UsHL5mYJdLst4bmu+Drkq194hgD6g0MxgOBp9buDrr3SENVV0ejqKNWfyZ+P2 0qt4MSFNBoZCDYQn1wwtI6RWas6MFtZeixJ4jmjowGYmitgLLrzbVaixyYUNjgf0VK6S kAGG5/axCFi2nNapo+0jtTZnF/I2niAbGVN9m7LnM+uspMzfMJC270BJlHNwa97201cI DKWYLwJgSUdsB/zmEpq4lKsJBmlmuJx4lF0VwZdt0fa3gUZPNqJ8HaNzcEI5EPTfU48b vWKA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vgeEprtI; 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-6dd182369c0si87872376d6.232.2024.12.22.08.30.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 22 Dec 2024 08:30:39 -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=vgeEprtI; 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 1tPOls-0002us-LJ; Sun, 22 Dec 2024 11:25:36 -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 1tPOlR-0002bG-Jl for qemu-devel@nongnu.org; Sun, 22 Dec 2024 11:25:18 -0500 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPOlP-0003Bb-N5 for qemu-devel@nongnu.org; Sun, 22 Dec 2024 11:25:09 -0500 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-2162c0f6a39so39760345ad.0 for ; Sun, 22 Dec 2024 08:25:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734884705; x=1735489505; 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=MHMMCbrUVSen8mtbKytkDiC9qapK9hvp01hmIO9UtbI=; b=vgeEprtI1hGF6jV8uoNRev5/ZcMv9PzeHcY3pmD/Ylnt5BOkXpg+IYW2dm13oFUuNm z0VBno/wLc0EVq9aWr863xT+f5kiKuoSEAK77EPgyaLdF/NipsxXxhqiUABPtuVodCPz vKuR8V7nDi6BTRwH23Vr4/oQd7I5tvAiY72c14PDZSzpGX5zV39CjtVVt0bSSijDvO0p A1UfqzvLFj5LUddeYqRy8yWmLfrj4miblQs5AbkzS55QpDJdC3RI7ndMSsuwgptsyEuR cF5ApZ0FZE585AEnUgAxouZng6z41QL10t38+/k8pX5V38E13zOrRBlVCfo+jCs488hY r67Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734884705; x=1735489505; 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=MHMMCbrUVSen8mtbKytkDiC9qapK9hvp01hmIO9UtbI=; b=I7Wjq9t8nrdoJ4/OPzeZHlEZ3NB8LyjTbTGLwS9cob326znn+dPGsBxdk1j8eYWmTu 7W+gGwSqFhvkuTKhFdB48kfnG2sgEc5O/ZslL9XlnlaDkpnb4dm0oa9awE2UVN89Cwte tMpvzdAK+WbrYLc6aIbKbHrV2PqZB7SEFrnopQr9WbHXTrgOFnsCV4KIhycxYgSuuSdy adbmhKsWsC6c/t51ngcIlEpaVfvvtekcLabaEMjoERWscjy2xEHhCqtYgS7QGAUVS/L8 tcJNCVoY87rwFFnBbah79Apyo+mfwREPLETU/yZ5akD0qrzNuMV37nkKy1fUEY8bSw5n Fzaw== X-Gm-Message-State: AOJu0YzZ9PuytKoCwnUGbm08j7AtNdJvczDbRw+71OcCrJo3gVFKM7Ec 8i/vFmlgLrBW5Q1HTjCEPkrkxjauGidcL602LD7khd8uEZ3+3I6TvjiQRtBcLFVUlu8Eu96MGKc DupU= X-Gm-Gg: ASbGncvQZtbVFF8IwIXuqKxGMb+yL4aTml7Hc4yhe4Dd6MuP8dVSer6bAeNvxT8FHOV mDMY4wVzu2juj9hvVqBBrjiJ3nkgujNzH0cWSYMVfDzq8um3vavtAuB3x3IMapbZfB3CEjY0Ycg 5BEW277rwIjZPV4j57xoPnXj5cKZY6/zLkDNe51aOf+yq+BaGyvtwt9nV0FeqvpXQx08ZTiUELM FTgHJJ3dVwScG/dHVi7YpG3m05P56W0R0lHEvgnT5r4D6h6JRWDEBZOlJDGVQQ= X-Received: by 2002:a17:903:41c3:b0:215:8fd3:d1b6 with SMTP id d9443c01a7336-219e6d6a221mr154542285ad.23.1734884704696; Sun, 22 Dec 2024 08:25:04 -0800 (PST) Received: from stoup.. ([71.212.144.252]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc971814sm58461385ad.79.2024.12.22.08.25.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2024 08:25:04 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Pierrick Bouvier Subject: [PATCH v3 27/51] tcg/optimize: Use fold_masks_s in fold_not Date: Sun, 22 Dec 2024 08:24:22 -0800 Message-ID: <20241222162446.2415717-28-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::630; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x630.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 Avoid the use of the OptContext slots. Reviewed-by: Pierrick Bouvier Signed-off-by: Richard Henderson --- tcg/optimize.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tcg/optimize.c b/tcg/optimize.c index 4196de9e16..e0cb9bf6bb 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -2056,12 +2056,7 @@ static bool fold_not(OptContext *ctx, TCGOp *op) if (fold_const1(ctx, op)) { return true; } - - ctx->s_mask = arg_info(op->args[1])->s_mask; - - /* Because of fold_to_not, we want to always return true, via finish. */ - finish_folding(ctx, op); - return true; + return fold_masks_s(ctx, op, arg_info(op->args[1])->s_mask); } static bool fold_or(OptContext *ctx, TCGOp *op)