From patchwork Sun Dec 22 16:24:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 852935 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp3036537wrq; Sun, 22 Dec 2024 08:32:34 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW+rwH4PHdIQMMv7nAzQCREiOPcVWTO0fRNAur/BSICycD/HXPvJ9Zy5CacdWRMln34RmpYdw==@linaro.org X-Google-Smtp-Source: AGHT+IHYxMh46C8c8YhpNijhvyiRuNk6QxdyaoKpXFWfczbo6gxiHO+qNvEBboA2L16SbbbChkCD X-Received: by 2002:a05:6214:240d:b0:6d8:8f14:2f5b with SMTP id 6a1803df08f44-6dd23345712mr181635516d6.19.1734885154181; Sun, 22 Dec 2024 08:32:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734885154; cv=none; d=google.com; s=arc-20240605; b=XptVAxyZoQz8P+PLpsF+klnT+hj60T2jNr4BzRbjnFmWBgoFV29UyOv1tydlFSeWZ8 reH5i6xViXjWuUNYnB2NRogS76SlkXvDF6l8G7sbaTJmw9rtEF3O1ghFFUU9u2vcYATo APf5T7gTWbis3Sp/9vaa72PX29t/kqQTAsk8idsT/k/0kJDzSVjW4mpTPbH3Mw/dU/d/ zafdUPEib7bJ7itMeA5dDCE8C5NeER2TRAxNncFfgmKTAw8VVSFt5Tvb8/J/HM7ypoUH MirS8xWRbYZm80/ez4M+tZ34XKjs9OL6athfLmuryBspwGVgtk2PXvhTgKkwHUh8feXq T+6w== 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=RsMsu+KnHNOz8xxBzxsDdOwYFyA0SvaPufxN7cNRIvc=; fh=vm85eyWrvOAHduw3sqEA+cYBqvHB7M0MHFcRJg7VWOo=; b=jATFsxpz0gae9dqPZ+4Rr0yxLAWk3sCdoEXHpXoXEzNq1zm+IUWwyw7czFv25Vjbup GYB16Tfy4+xRnVfjN/BM9cPUrM00fi+AGIHkzm7HvHAMmp+4zvGv5sRn9M0UtxCAP+i9 TF6Rmd4mytpFAm/toBGCK7Z5hFgAc6m+zQtZw1sOop7Clbdz1qMXM7rvT4BaYyyieclQ 1azOCiR9sUCxDhA0bdxdmNZf5IKfd5uvOAY056RufFP87ucCpIkWO9ugv1563Yn4w5aS vuVN5mC3jCxiF0tQXtJgFZWTPQNYPvPSTZibcWKSoRmWbmRgT2RvmOq3sIjN+Ql/VvvS QoHw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HbJXVLZb; 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-6dd18101e28si88704996d6.41.2024.12.22.08.32.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 22 Dec 2024 08:32:34 -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=HbJXVLZb; 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 1tPOlt-0002vD-Mz; Sun, 22 Dec 2024 11:25:37 -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 1tPOlI-0002Zl-Hi for qemu-devel@nongnu.org; Sun, 22 Dec 2024 11:25:01 -0500 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPOlH-0002yf-6H for qemu-devel@nongnu.org; Sun, 22 Dec 2024 11:25:00 -0500 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-21649a7bcdcso31420735ad.1 for ; Sun, 22 Dec 2024 08:24:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734884697; x=1735489497; 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=RsMsu+KnHNOz8xxBzxsDdOwYFyA0SvaPufxN7cNRIvc=; b=HbJXVLZbywVN0IfF/7pwqWvL8hlFVs7n8yceDmJtLrS6cQWK0hL8+0Xdo8IBL1+l7t gSErmt3TAy4xQZENlOo+0GpGLdylIPyO28myESGh/CIEn/rOlgjHsJx9WaIvvw15GUcP DG3IDJFMtXHSaa2vBK/3DYMqnTVD6HlwD1DAsTm3coKM/UDKuV+5mN+AivKPo58OtM6f 4NAwnhW53TEvs2u3pTjmajuwgK2l1x5/IJUGKkJFKniETiuODmaXJtoCaADryoDYhV+Q SlEGcKBpD5Xop2iHQXY2FGzQFn3P9h9jgn2I+PE5O1QWyPGbvwnnyva53cnwE04PGB7J 2ZKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734884697; x=1735489497; 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=RsMsu+KnHNOz8xxBzxsDdOwYFyA0SvaPufxN7cNRIvc=; b=WlzQwvWC/oSyYBv2zbVrwBPtyVAiRTbZvdmOPneVvhXW6oNg9pG217+db5/uv/fyMH NYhWFsAnfL/rqLz2gA9iYRd7Uf1jE/TOXTBsQXD6PgSsgZnu/dT/1KtuB0KPWY0NCvKR uxALWl5uttWTDO0CM3+F7nAyQl8nPT/lSTg0xxVqEURjUwapSdN0WHdaPlcgPQEXBoF1 IYB4K/CA4frJLmVJzC09sZbZ7Nr2BDbpFtgg3czxXGXrMDufTmPptSMeIaz0H33XyIy6 u5Z4wTgeSCPqUopgHKMRKoEV4QM2NNJY1KJRTir1zwR90mlnYgHtkxXGvZJHG65ZgUjG eYrA== X-Gm-Message-State: AOJu0YzLu81ukUgdXl23QM13yBy+Rs6MLsh2ZsPIw2lKqUk095MOMk7m ttMKUjVen3oPDv6svEW4ytqT4kmVNS133VPX5DyI/Hdi4z4xwuqYtna0iw/YUpTpZSrEbIVotL0 IYhc= X-Gm-Gg: ASbGncupVhNO6drPlKT4SswP08P97vmFofGmbbbZL9NN45+1iPNtV3VTxl316jgNrc8 tfM3+0mPQh2aGyyi5swOKX+ODK05cWdzBYMScx8Lpjoih8sGJiw/WRwbX3ErOMAe+YDYH7kxmtm JVueyAU/UGBXu5M+yrKczq05cQxtJImFMCQVqjZ8jqG1ZaobMu+8py0vQMurcoANXHR0h10M0Mf WeALS4xSq9udy2gmRUjB0+Rkv4n5PVRhBd9cYsvgLQUG6CDq9Hj1qXobvWoKFA= X-Received: by 2002:a17:903:234b:b0:216:527b:5413 with SMTP id d9443c01a7336-219e6eb6273mr150857265ad.26.1734884697312; Sun, 22 Dec 2024 08:24:57 -0800 (PST) Received: from stoup.. ([71.212.144.252]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc971814sm58461385ad.79.2024.12.22.08.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2024 08:24:57 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Pierrick Bouvier Subject: [PATCH v3 15/51] tcg/optimize: Use finish_folding in fold_divide Date: Sun, 22 Dec 2024 08:24:10 -0800 Message-ID: <20241222162446.2415717-16-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::62d; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62d.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 b6a0bfe64e..0a617bac71 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -1671,7 +1671,7 @@ static bool fold_divide(OptContext *ctx, TCGOp *op) fold_xi_to_x(ctx, op, 1)) { return true; } - return false; + return finish_folding(ctx, op); } static bool fold_dup(OptContext *ctx, TCGOp *op)