From nobody Tue Dec 24 13:21:00 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1734885083; cv=none; d=zohomail.com; s=zohoarc; b=U+OTp8jO+s7faowU4mW8BHAD+BQ0nl4k60DSguB0UsJgxG2Aj7LJddov01k8euvt1Cp2ZMPFTSSueNcH1WRoqkQ0f62UgIgJ9QhZGIrjwKMRYd/UfCAmzwA/zqAysamrc45uxR2QOr5kKynBVMZ5/H8LxIBtpcu7EQD07rjGL+k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1734885083; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=OyI7W7fnkDxR10eAmkTI0DbupaxplDdtdBvj4WSj0sQ=; b=F31VSJD2Ln7xqijPfHNx0nLNUDMFgj9HXXW1mvc0T9e5TW5m50XjPOXdpjD8B9DGlaYThTGh1/8zt8pW+TGeMejhkeZUpPAs1LCdQ5vNz2ZcIRq4hYZG3VACO77SNr0lFLO1hMKMgffqWcFIuYZH3ihAF4nFE/MyTjpPjw2IsBA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1734885083784352.7603791161456; Sun, 22 Dec 2024 08:31:23 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPOpW-0005L5-62; Sun, 22 Dec 2024 11:29:23 -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 1tPOoa-0004xY-3Z for qemu-devel@nongnu.org; Sun, 22 Dec 2024 11:28:24 -0500 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPOoX-0003jr-5x for qemu-devel@nongnu.org; Sun, 22 Dec 2024 11:28:22 -0500 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-725abf74334so2918551b3a.3 for ; Sun, 22 Dec 2024 08:28:20 -0800 (PST) Received: from stoup.. ([71.212.144.252]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-842dcaca43bsm5848808a12.66.2024.12.22.08.28.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2024 08:28:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734884900; x=1735489700; 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=OyI7W7fnkDxR10eAmkTI0DbupaxplDdtdBvj4WSj0sQ=; b=H5k795EQlwdYr9CSkQr/eFB+MFwSUDgKT5y2g1ZpgteeA5tQ+LyNGulgC2wPfr81nc dQusNauNnMgkft+Xm8BHxg+oSorTjwmC7ArDwGXNCnnpCvZ/VFH4WqsGL7punvYA6vqo wd9JFRL4K8LJ1EKdhMJ7wDOu5/mV5AdioAcL2A1DH93SzODF15NIujehVDa4Pq/6xWHo OZ0WXzdUqQnGhPn4cCBzjLgnqaY3lajlRnd07zcDPkHC3YRle6ShID+MW662O4fJ/rl7 RKjTqijH9EwfEGlK9PSKK4E08HDkQgEEj6/9DG4XcWbYkpWAQqUwDKQo6MSsa730PITU Zt+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734884900; x=1735489700; 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=OyI7W7fnkDxR10eAmkTI0DbupaxplDdtdBvj4WSj0sQ=; b=DNDTXwYnhCBi0YeOeRyQb3HXbH+ryXkgaCJTNGeny7aywjndxZWpkxZhVhuXtTysJu 98JtYun2UMxVSDDtvwnVXvBQ8mh/ZF2a+jt80IrMuEcIAtcUUAgR63uGU/AxF8P8cTke TEDh7XdFYdVCboTXSgpdi39I5Zv+eWEbtd6dAONYgmOmNG8YWsf4btPKmTCyJ6wlfkEL J1d1eSEpO+Wcc1Ejwe7M5oRs3Iyn3jaNG11PbKhV0AdhZDfdFQ3JweuLZaJTXU2VTdd7 9OJhJrNovhY130L6ddsPi1MSrVpEJtm1EgiA7McKfvvrlRtmR8jczckNkMOoQtLdfjqE kXuw== X-Gm-Message-State: AOJu0YyWFO5idDAgPpve7grWJLVrmJJUOfFV0mrc7PM9lhFkR/OlZBdx zOpBfuxH9B7z2kzBC1vbDrOWOMnwaK8vo/OM+IvjXb55yCMYVxj/dC0jVJ3f9KKNMDfGhOWhVf9 BgOc= X-Gm-Gg: ASbGnctCyOyFXrgE97grdYQVkinBmR+uws4jnS6JPCJ/axVpdX/jo9wPNTYFaqqZ17v lU2Mena//t87IqQe7bWzzuSM0XXPWZOOTd3M79Tv8uoYe5RnEHo+O1a7eTtiGNPFLXikugInMBX j9XKLlHbWju14ijTaddFsycYRiL58u/cNmkl2lYFMeyNoFuU2mV06x2pSkrvCd/FKdU+IRTWdo9 1qGgFsAXBWNvQPdINuMC9sDwobtJen2hsZwPoxNlu43SD47q7w/+UJI2wegI50= X-Google-Smtp-Source: AGHT+IE1NT1qm6O78znsSQwxVHaUoPmHIkxoWPVnkN/JZlPK4TM42sq7jFHcHvBw0FaM6rjlhMjS8A== X-Received: by 2002:a05:6a00:1809:b0:724:f8d4:2b6e with SMTP id d2e1a72fcca58-72abdd2ec01mr14669158b3a.4.1734884899898; Sun, 22 Dec 2024 08:28:19 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Pierrick Bouvier Subject: [PATCH v3 47/51] tcg/optimize: Use finish_folding as default in tcg_optimize Date: Sun, 22 Dec 2024 08:24:42 -0800 Message-ID: <20241222162446.2415717-48-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 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42e.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1734885085549116600 Content-Type: text/plain; charset="utf-8" All non-default cases now finish folding within each function. Do the same with the default case and assert it is done after. Reviewed-by: Pierrick Bouvier Signed-off-by: Richard Henderson --- tcg/optimize.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tcg/optimize.c b/tcg/optimize.c index 3bb208d6e9..7481b59d59 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -3079,11 +3079,9 @@ void tcg_optimize(TCGContext *s) done =3D true; break; default: + done =3D finish_folding(&ctx, op); break; } - - if (!done) { - finish_folding(&ctx, op); - } + tcg_debug_assert(done); } } --=20 2.43.0