From patchwork Thu Mar 9 20:04:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 661048 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp496864wrb; Thu, 9 Mar 2023 12:08:46 -0800 (PST) X-Google-Smtp-Source: AK7set8gIEaBGb9VcAWBUWQruNS+AJal2+JS0PlDHLm7NbF84zf6aMh1QVFfJpMukR/SPuyuBbGw X-Received: by 2002:a5d:4847:0:b0:2c7:832:8ccf with SMTP id n7-20020a5d4847000000b002c708328ccfmr14619402wrs.53.1678392525820; Thu, 09 Mar 2023 12:08:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678392525; cv=none; d=google.com; s=arc-20160816; b=zIsm6YTAk/sGaQfG5c2mIRX03Hl0TK2noqxUhenkpf4I8bWHbX6seQLkl1yyQQFMmK Imj1g4vT4lV1RA9n1e0nbXA/G4UjMNMfJrmhmVofpvTq3xJASZIwg+5uayIZLB4PJ8J7 WqPBdlGw7eSa4oCHvoonjPRgWJdu54jsyEJsWGeQDI5OMwSBLoSKxJQfgL7k0su13WH5 xNdR/7KO29m1zRxAI7GT58QWam8VPU/qZY2ub8/aq+RsM/88s2Y9Q9EAaDmbbIMhehh7 hj2NqSeHRybCbIRsHy03VxhI9krYA5vglvufkECJHJZKDUilR99DVDc9B4jqe4DOavXV 3Tog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=qIOLxV5UuG1peSvKZRbUdqNaPhsBQ4C8h/h+ls7Lut4=; b=YG5MGrjiuwkxbooTEcYPljAS5j9iGayfO0S2cbdQzVDKHw0FmNKX6lHdsX9h3bW0Ey vZmr6wEmVlhKkDUsITtiKkxvxEsteLfrCFUFb2lzDkYaunlIKkgjAdi/pSMZqbn2Ma2Q fJCAy21yNQHIcGW9MONNcPwm+1IQ/kR567h2jphCqZA3wE26AliKwPCbYHkI8EFRnbmu RVYeVux8JqAOm5ZrB1r/0W+oOv6GegLBIyjpa4K6AD1AF8aZvjRAJY8MVJL1oC29+9M2 8LDvgQuEGT0nJLKSz56g+9L1sj9kgd6zTZvD6ybMhufar+l4PXqrmFkNuecz4mREj2t9 VX4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hDcfoY9c; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s10-20020a5d6a8a000000b002c55a50e98fsi280391wru.389.2023.03.09.12.08.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Mar 2023 12:08:45 -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=hDcfoY9c; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paMWX-0003mZ-F3; Thu, 09 Mar 2023 15:06:01 -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 1paMWU-0003lX-1s for qemu-devel@nongnu.org; Thu, 09 Mar 2023 15:05:59 -0500 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paMWR-0000gT-VL for qemu-devel@nongnu.org; Thu, 09 Mar 2023 15:05:57 -0500 Received: by mail-pj1-x102f.google.com with SMTP id nn12so3131511pjb.5 for ; Thu, 09 Mar 2023 12:05:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678392354; 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=qIOLxV5UuG1peSvKZRbUdqNaPhsBQ4C8h/h+ls7Lut4=; b=hDcfoY9cn/XlhcJeoJSWsnJ6AFY9Y7yIwDwFc0JrRFAaLCmSbEJrM6ZN2a70PsmMRH IPPgD7q04Nr2m2VR94KIJUZcPSA5YBQBi4EZylIo4JhTSP0eP26P2dpYzKQ2gfW0CuZg VtylF5GYj0NsFhhM7gsYZP1equelp2VOZjUrwYYiplr3CHWKyDk776JPNEpOBWeWuCvE Dy/Ih53AiS1sMFUUSKukrU1eCOgCYGB2lN/OxFmI6qlvf7V9kU/H3Np6MYO0Eobd5B5x 6hu5EpSqCw+o81BB3hhOIIqadTFaP3e/S+1O9W9DVNSoaO+LOJsenut6Q08rXl0AJOsI f9aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678392354; 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=qIOLxV5UuG1peSvKZRbUdqNaPhsBQ4C8h/h+ls7Lut4=; b=FA7jWSWlni7N2KTEOoQ8oSRsLldi7BuCO8OPdMl3KyF0avGvdNdx8eb/ovOyO1fzKm 8/63FuJUKxTxZcefmpy/uB7++jDMBzDFq1i08hX2jN7ACjzhQ5vxCHQK6GTkFtuHQIGh ADNtCmk+n7ieg07qm5DlfY4X8u3U1u5jxKWed5WE3SwL97N97xYYUATPtRSD1UB4bOgo B1f9fgc3Shoistb+X+7biG4uMptaIaJdNHtL/Wg+M0J/19PWYnvst9Uynr75/PAwDpU8 OPS2My20eqiqp5zviHend5B43kR9TFto+ZP0kTo6LWfi2ImNCNwHQ4riNIs1lOZ8n0/L 3U7w== X-Gm-Message-State: AO0yUKXxTOySwVaGC2g9Lvk6x3NsXjkKYNvrYw6/VNiLpDnMpsk86IKg PX8gGAYWyrRtOdq1yV9g+DkhfchwxON3CW4AJbc= X-Received: by 2002:a17:90b:1804:b0:233:af77:c075 with SMTP id lw4-20020a17090b180400b00233af77c075mr23890339pjb.36.1678392354528; Thu, 09 Mar 2023 12:05:54 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:bf7f:79a0:a976:bdaf]) by smtp.gmail.com with ESMTPSA id t20-20020a17090ad15400b002340f58e19bsm308083pjw.45.2023.03.09.12.05.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 12:05:54 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL v2 02/91] target/mips: Drop tcg_temp_free from msa_translate.c Date: Thu, 9 Mar 2023 12:04:21 -0800 Message-Id: <20230309200550.3878088-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230309200550.3878088-1-richard.henderson@linaro.org> References: <20230309200550.3878088-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102f.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 Translators are no longer required to free tcg temporaries. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/mips/tcg/msa_translate.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/target/mips/tcg/msa_translate.c b/target/mips/tcg/msa_translate.c index 1bcdbb1121..220cd3b048 100644 --- a/target/mips/tcg/msa_translate.c +++ b/target/mips/tcg/msa_translate.c @@ -217,8 +217,6 @@ static void gen_check_zero_element(TCGv tresult, uint8_t df, uint8_t wt, /* if some bit is non-zero then some element is zero */ tcg_gen_setcondi_i64(cond, t0, t0, 0); tcg_gen_trunc_i64_tl(tresult, t0); - tcg_temp_free_i64(t0); - tcg_temp_free_i64(t1); } static bool gen_msa_BxZ_V(DisasContext *ctx, int wt, int sa, TCGCond cond) @@ -237,7 +235,6 @@ static bool gen_msa_BxZ_V(DisasContext *ctx, int wt, int sa, TCGCond cond) tcg_gen_or_i64(t0, msa_wr_d[wt << 1], msa_wr_d[(wt << 1) + 1]); tcg_gen_setcondi_i64(cond, t0, t0, 0); tcg_gen_trunc_i64_tl(bcond, t0); - tcg_temp_free_i64(t0); ctx->btarget = ctx->base.pc_next + (sa << 2) + 4; @@ -545,8 +542,6 @@ static bool trans_CTCMSA(DisasContext *ctx, arg_msa_elm *a) gen_load_gpr(telm, a->ws); gen_helper_msa_ctcmsa(cpu_env, telm, tcg_constant_i32(a->wd)); - tcg_temp_free(telm); - return true; } @@ -563,8 +558,6 @@ static bool trans_CFCMSA(DisasContext *ctx, arg_msa_elm *a) gen_helper_msa_cfcmsa(telm, cpu_env, tcg_constant_i32(a->ws)); gen_store_gpr(telm, a->wd); - tcg_temp_free(telm); - return true; } @@ -782,8 +775,6 @@ static bool trans_msa_ldst(DisasContext *ctx, arg_msa_i *a, gen_base_offset_addr(ctx, taddr, a->ws, a->sa << a->df); gen_msa_ldst(cpu_env, tcg_constant_i32(a->wd), taddr); - tcg_temp_free(taddr); - return true; }