Message ID | 20211029043329.1518029-19-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | 404a148d891bf18fc564fa94b00970bbc2c0feec |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:ad5:5208:0:0:0:0:0 with SMTP id p8csp396351iml; Thu, 28 Oct 2021 21:46:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgAnK2CaShOseqhLvfojnkf2UzTitZykLvPsT/mxjHzDW9+ecSJpMM27vbPFw+aPihK2le X-Received: by 2002:a05:6830:154:: with SMTP id j20mr7037008otp.249.1635482806557; Thu, 28 Oct 2021 21:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635482806; cv=none; d=google.com; s=arc-20160816; b=fWyCeZi8RbvXApcu/9/Yj9PtwbOms8H7butA+cg7/9Da3LwuVbBidXHUU7IyDv/q4W pdd/FWZUeAaVhpLvpT/H67/wDVaeDDOnZe4LXa7G4wzouBpWdLp6jGIuqKLyt5TWoJsH QHcaA52OxkqhcSJZ8JQGJLlua95wbvpKnsQHHwZvQRfxAaxpwHi09hJk5XHc8byZCOY2 WtrCxRmX4K4yw2ZKR1k7/c18GRpm+GOUiAQVbgjWf5QXA8APIlyVXGB4yD+0yKTITkaE u2SUPWcS/CHnybDdr0yl94nY4b3Z4qyO5vg6nXJ0NyywtHd9SKQ8rDIf+4n2rjQ7In7V fqzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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=aQUcMu1Ri+jkcKMkTmUqdfPvjg+0V++WEX2k8DhqwDc=; b=w1QCTALpzqTf86wskrBdpxUz/8u8JdIY/OReMpHCXraVli/Pl0lvQiOJT4ND1rd8T4 I/bNsabQ4eMteRsBY2zYgnZgUlq1YnSnxxhLlJnqlqYGijCSXYzZ1c5lAT/w83R8djCJ c2nibCws1X75gaXuz8JsQNsyp5xKng/JbM3xoZOgVyF1o7iONrtOwnJe8nCb7rXZs/wV qi9+Gv2xukcQAw0aW1DEWrymk6xdbZwPddCoUDCBVnbRRqFnt5nXhu4DLi9enHb1DA4y Wy0L81+euyykyEzq/nLdc6P8MQ0aZexBz6Q8etFdSyfb3K8Kn2tE1Nu969U7pTYPwOS+ GxXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="j/Vi5ncR"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=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 f3si7310738otu.166.2021.10.28.21.46.46 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Oct 2021 21:46:46 -0700 (PDT) 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=fail header.i=@linaro.org header.s=google header.b="j/Vi5ncR"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1mgJmv-0004Eg-Pq for patch@linaro.org; Fri, 29 Oct 2021 00:46:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51218) 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 1mgJaP-00044v-Qd for qemu-devel@nongnu.org; Fri, 29 Oct 2021 00:33:49 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:39805) 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 1mgJaN-0007x8-7z for qemu-devel@nongnu.org; Fri, 29 Oct 2021 00:33:49 -0400 Received: by mail-pl1-x629.google.com with SMTP id t21so5991652plr.6 for <qemu-devel@nongnu.org>; Thu, 28 Oct 2021 21:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aQUcMu1Ri+jkcKMkTmUqdfPvjg+0V++WEX2k8DhqwDc=; b=j/Vi5ncR/zsM4nJRpbw0PdkawnFOSikHPXpTaRigA2lOy997IJn/Ac2FbKRTo4MaU4 yGbnxXJmMJ363madWAEP6u/lOhhaW6Hl8iKzneQXXyMcZU+u8jV0F4HdTTv7lpkgPMfA OEu9azGwKf2y/oD/mV54N6IUFPkFKOFfyPaDT5oC7Kaj6SyYimng09JIFyP/gEYFwbAB 5je5wm4UChM3VxtQNidUljS5dEAqU/Fp+FKF5hMN00dTUDXl+Nd2ejAUmbCYkdEregD/ e8GhaW7upqWCMDPpF7MaBEcn074YC2gN+Jd2hZiE9D0g6Cn3Ory7cITMfMcP5WtIK19s laRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aQUcMu1Ri+jkcKMkTmUqdfPvjg+0V++WEX2k8DhqwDc=; b=lKDDoUlb0oCkejrPio3ANmc1tVzWc2dkRHF+W+NlzryBc2ASpZ/U1nxT8KbDpOsvXd r4DEHbEeloOnxSuEDZ4ztwFslzuLnhPbTlNXPPNTigi3ZDAB1+HE1Uc0+Ts7q7mJzwv8 obxsjKQJhvqNGR+2qWSo+iSl21GEdQTutP7dfsQnHprZLrGNLZwjVtrdD3zj97NFIuWl FwVwFDDmq8seyDu3iOfQPfN1xoxyZi2g/Hh5vN0LQbwOslDEoG8hIPv+U3wX9bwEivMh cn/kayKlhg+be7WKqfD4fLS1i48QsQQ7/xDB+Nv83q2OXQDMIfVt5uKwT9QZGKtpmQIL k2rw== X-Gm-Message-State: AOAM531SYu98Ky1qxSG7uj7QEMEufZipVNrX68OrDGShikvtlnnlvsSU J9OzWYLjsk3xmiKyKGuBVccWMeDtl69mYw== X-Received: by 2002:a17:90b:1112:: with SMTP id gi18mr9011170pjb.136.1635482025996; Thu, 28 Oct 2021 21:33:45 -0700 (PDT) Received: from localhost.localdomain (174-21-75-75.tukw.qwest.net. [174.21.75.75]) by smtp.gmail.com with ESMTPSA id i11sm4120257pgp.18.2021.10.28.21.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 21:33:45 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PULL v2 18/60] tcg/optimize: Use a boolean to avoid a mass of continues Date: Thu, 28 Oct 2021 21:32:47 -0700 Message-Id: <20211029043329.1518029-19-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211029043329.1518029-1-richard.henderson@linaro.org> References: <20211029043329.1518029-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x629.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.23 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> Cc: Luis Pires <luis.pires@eldorado.org.br>, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
tcg patch queue
|
expand
|
diff --git a/tcg/optimize.c b/tcg/optimize.c index 368457f4a2..699476e2f1 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -713,6 +713,7 @@ void tcg_optimize(TCGContext *s) uint64_t z_mask, partmask, affected, tmp; TCGOpcode opc = op->opc; const TCGOpDef *def; + bool done = false; /* Calls are special. */ if (opc == INDEX_op_call) { @@ -1212,8 +1213,8 @@ void tcg_optimize(TCGContext *s) allocator where needed and possible. Also detect copies. */ switch (opc) { CASE_OP_32_64_VEC(mov): - tcg_opt_gen_mov(&ctx, op, op->args[0], op->args[1]); - continue; + done = tcg_opt_gen_mov(&ctx, op, op->args[0], op->args[1]); + break; case INDEX_op_dup_vec: if (arg_is_const(op->args[1])) { @@ -1602,7 +1603,9 @@ void tcg_optimize(TCGContext *s) break; } - finish_folding(&ctx, op); + if (!done) { + finish_folding(&ctx, op); + } /* Eliminate duplicate and redundant fence instructions. */ if (ctx.prev_mb) {