Message ID | 20241210152401.1823648-44-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:ec08:0:b0:385:e875:8a9e with SMTP id x8csp388881wrn; Tue, 10 Dec 2024 07:34:03 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWkUqp7ZcWCEpP4kdUkH8aOKQJ4zrXlphb7eQ1e3h2BAytsPcqlj7uJ1BTgBFkWP2PaUYb/QA==@linaro.org X-Google-Smtp-Source: AGHT+IHeP/54dmmRq9esuHXEGFaxQw/6hkwDTmJElolUpSbeUMktcR9+cl1SrzES1521T+pbSKBe X-Received: by 2002:a05:6214:daa:b0:6d8:99b2:63c5 with SMTP id 6a1803df08f44-6d8e70ceb68mr275084496d6.12.1733844843152; Tue, 10 Dec 2024 07:34:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733844843; cv=none; d=google.com; s=arc-20240605; b=LF9TJ9oxK/apqP5mwEH++JmxpEWaCZcNCUeagnAPLkRcKGpMPj2N6jvmnjmn2bRESo lbayDOg+E5DukoyY6T5ScPyBWliSuGQnpDozIfgZ/qx9ZNEK51MHnHR5Dsa4i7t0WiYl sNmafPY5zSevDVTSrT/jozD0bEAQTCKd3XW9cyLIYl7lpyAkXmWx+bWZQ6RvlbisVgA+ /iOK+CoDTrGULPD7K7dMkpdEpVodsuG3+b8bfUTYA+GfHkAZd7lffepu1P0Iwee3ndcU ehz18QHtcHMx92q10tqrgq5GewJwT/KDi409A+PM+o7O6jtZMU5Ilsdsyp67hT3pWkWI Umiw== 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=lDI/3EszdlfHW9G8ekets9xBkYRtBXLFL38K4nvEAbA=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=Ry0OnWV3dDmYIXtn20vn2a3e5SdMynlI6HD+CdgTZI7niQt4CF92t/D/8Vh4UbxDkT Jws3GfNpP1CWXoBKS3+L6I7xUdNkUIRgbKHDFnmtIgycchHSbGT5qORyBRtHwlUtiZJ5 So2MQHHPb28VIQcMIhW1cdDvqB7Q1NKRW4GbSdSm4ZUYFv70hgXcRKcR1YdkVrC2L+5V O9IEhuI9coFVje5sPY+/Qd2pru+6Mz1Zzj4qjmf5TnHQ/Uz0cZ0RVLRMHfSUGPZS3QG9 qfB7t5smEq4vN60WHlpbPPQ2rpojn7bAf+hUD6TrgkAnG3luUxDMBieP0zQo6S3eNlz+ 1z9g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kYogpjaP; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6d8e6936317si125540566d6.281.2024.12.10.07.34.02 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Dec 2024 07:34:03 -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=kYogpjaP; 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 <qemu-devel-bounces@nongnu.org>) id 1tL29i-00071h-MC; Tue, 10 Dec 2024 10:28:10 -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 <richard.henderson@linaro.org>) id 1tL29c-0006Pr-23 for qemu-devel@nongnu.org; Tue, 10 Dec 2024 10:28:05 -0500 Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1tL29a-0000Jc-EN for qemu-devel@nongnu.org; Tue, 10 Dec 2024 10:28:03 -0500 Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-71e163493efso22799a34.3 for <qemu-devel@nongnu.org>; Tue, 10 Dec 2024 07:28:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733844481; x=1734449281; 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=lDI/3EszdlfHW9G8ekets9xBkYRtBXLFL38K4nvEAbA=; b=kYogpjaPl/ZsqFO9uQTXjLIeST8q4fCClHZtzrLhSbQv8pd6k07xMQWEIEAEhR2Sq1 pf8o/VGBIItLVP0kMMOZHSmjInbOMJDvm59+kFMl/UhJ42tFluJQ+UEntwo5m1w0VH7P fbt036/oVS4Eqt7AmNHHEhnwNENbzgdqPRVq1Hfo/KkdH9fwhAa4RkvcAFPvo1ubIGkm j/ZrTRnFLq23f8AE3fBzlWPUo90Emt6Y4p3mw0b12pUyss0ZH0nvMrNpKFqcFMS6DIC+ t90aBD6i1fkVREBVza0QQ2jz3+v6qSmdUV+b4zKl1IUhwX+RNw+RGiZJICQUpKbSfd19 12iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733844481; x=1734449281; 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=lDI/3EszdlfHW9G8ekets9xBkYRtBXLFL38K4nvEAbA=; b=SBshqPr3MolbOQ33SBxr6tQKrnao6AnjRPiLHtjp5ea1NNu3zyCn03mNLVU5ogLQVE xhQ7CHLa9Jo3HJU0zijmJrftGxSKS/a5GFjYA4C0p90uBYIcKC9rJD+pjjmjRsia0mge sMkT7HpD4JakeErv2XaTcWk+kqPPsY8JfqF+1Ok4gfGTp2XAcdi4GwOpv9GVCMrcH1Iu 9t65vU/6eRBZanReRlGd/lnrEn3B7zuJFtCOq+za5F0ACmgtVqKQu8nKSRCyNRew8wuM +KEfxzukpaGlftrB9naRwF5mnefC3ACVUNsmf1KOmSNIKo4ND4asEhpK9scxTB3ycqx9 B5lQ== X-Gm-Message-State: AOJu0YygVvA1tgtwl0wkZOHfM454z2wU3UYgUdjRfsvAES0TpIheha2f m1XzJ6CNCGuUx6Erjlrn8SJTtRKyixigr6Ug2xkLvOKpEnNqNTveP/Xx62F636qJHzxxe16MyoR lD4FfLQAW X-Gm-Gg: ASbGncvHolOskhPx/O79Xe2eSGH5NJqPqkj4edA2X+hqAzSGAPIVP1ZR/mqSmj881Jn p7dRmL/TS1nXNHlfxGMxUpfOtPJ9uwKeDPGySRY3paEU7ocR/9e+YatT6+kNrpc1InkbM1Hdx4L 1amloXmX0zdE2ARYrmxXvh0AP6iB7XJQiXXvNw0PSdrjO8JjfyG+1MU4NvOvcs4t7nCPYrltfHr NO8wfBH6yuPrjPbu5Jyiks9ctkag/1k1YlS5vZgVKLLeyoU1qFpY/6Z0LhzSQ== X-Received: by 2002:a05:6830:65c2:b0:71d:ee65:7c38 with SMTP id 46e09a7af769-71dee6581cbmr6580907a34.22.1733844480944; Tue, 10 Dec 2024 07:28:00 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71dc4a0267esm2785955a34.52.2024.12.10.07.28.00 for <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2024 07:28:00 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH 43/46] tcg/optimize: Use finish_folding as default in tcg_optimize Date: Tue, 10 Dec 2024 09:23:58 -0600 Message-ID: <20241210152401.1823648-44-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 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::331; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x331.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
tcg: Remove in-flight mask data from OptContext
|
expand
|
diff --git a/tcg/optimize.c b/tcg/optimize.c index 24ec14f476..94e942e1cf 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -3085,11 +3085,9 @@ void tcg_optimize(TCGContext *s) done = true; break; default: + done = finish_folding(&ctx, op); break; } - - if (!done) { - finish_folding(&ctx, op); - } + tcg_debug_assert(done); } }
All non-default cases now finish folding within each function. Do the same with the default case and assert it is done after. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/optimize.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)