From patchwork Sat Mar 4 18:18:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 658784 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp1055312wrb; Sat, 4 Mar 2023 10:22:09 -0800 (PST) X-Google-Smtp-Source: AK7set/KSSe48ae/NJxHcM6DtqsaVMKGzfjLh0nUuVv9g7YJ9HIEY2crhOPWZdfBGi/fdO5UjR17 X-Received: by 2002:a05:622a:15c8:b0:3bf:db0a:c0fb with SMTP id d8-20020a05622a15c800b003bfdb0ac0fbmr8825474qty.10.1677954129372; Sat, 04 Mar 2023 10:22:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677954129; cv=none; d=google.com; s=arc-20160816; b=F1PRoH5le5ROA9fjfmYh+ipC6Np7dUGX0Y2rLARuGsPDruxcbiTr4X04dXkOgGS2No q03IoNEmfV9Ob3SV7D00S0IptdUl0H1ikS5minOS2cJpwL695YQ6wXSmImxeyOux9mMg yiCfdKMvxdHY3s07bj2qp7Z5FYei4ZumfHd35kaKnRmZXoVhK/UIH2vS4OwjHv5oRH68 g83Vg7uEwM5DahnZdVyyOujtnLtpGoC5pfvXYM6NjyNv3ayHlvlVQ4tW4G7B56z6atn4 hKf6M3ywu/hE1X8KRSnj9BAgRad9MrEk+OEtJ0tXnOj14JDsTzDXbhXAXcvpWmK+yqh3 oQLA== 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=YagYARUj+tWscHqmLJkuonA2cFZqj495U+6irFp0EFc=; b=UXFyiaApRozM7QsMXIOB20Vy0LmBP2pAlMU313L0dW300EFQHx0ruZGdIzUQGOhp57 7PT77+jrg/D9JOyE0lS96ilp3RDRJRUDkcslh+Py2e92+uj2xdJ5AMbut3B56M10CoB1 JlV4hM/eqKo3c5ZhMC6vnWjfS3xSjjTXjzwoOm3FzTbR3txWTtSLBiVuPK5DQQwzpZ64 taIghXXAbZwTVlrB98wd3ObEbNURbm7n1H48jud6PmMf7oC4kw99gE2SJ4TTTegtln/w O4+YFXTJ1a9zUzgdmasnD+8OJqy8Fap3efEr/cPUGABvbG1HV18rRjwX+nYwhoI4PrHx ZN6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l6IkY4bi; 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 bm19-20020a05620a199300b007423b09e1b8si4514032qkb.600.2023.03.04.10.22.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 04 Mar 2023 10:22:09 -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=l6IkY4bi; 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 1pYWTR-0006PJ-Of; Sat, 04 Mar 2023 13:19:13 -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 1pYWTN-0006NV-TF for qemu-devel@nongnu.org; Sat, 04 Mar 2023 13:19:11 -0500 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYWTL-0003MF-Of for qemu-devel@nongnu.org; Sat, 04 Mar 2023 13:19:09 -0500 Received: by mail-pg1-x529.google.com with SMTP id y19so3298338pgk.5 for ; Sat, 04 Mar 2023 10:19:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677953945; 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=YagYARUj+tWscHqmLJkuonA2cFZqj495U+6irFp0EFc=; b=l6IkY4biV0ZozsbhuQkUZok6zvhr7QEsn6CnXKSHibBn4E78R6f8WqqfG8Y0zPai/D /LuVUXTRpEVN1mP4F9dzbtbrdo/S7mYZmYXm4cZbWNoGCTLJ2LKxnYeOuuozgJJqPH/1 uTov/4noSJ3jH6Odqi4/DqcXXQASvr4BLcBsxObp9DfoP/15CSgJBG6zUL++TNPd5eNn yNVulffTj++CCsiK2VngI1JqoZMJFVHgXmyLYXjyQ753vSo7gaW0KgLmXrO0vgn2myZ6 3qw+HNRwQxg8EHxuplKp5x0lDM4EVTOlDHsREdLriax/XHHrr6SaDpCgkjy9NL4Tc3P8 9PMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677953945; 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=YagYARUj+tWscHqmLJkuonA2cFZqj495U+6irFp0EFc=; b=WPSA7Cv6TeA/vV0Vx1sakuk1/aPdQ34dER38szBTE5N3c93vMrejLDpW2P6fKppEks T1yaxyQXa4c6TknbLTDhBxfIiwS1snNUyjbyZGoROkrIqomHYksjpxRlUpb90o7t0Xfg AxbUFiRa7tYP3HOLW2RyIpFSMQiJTnm+g3Zymql403WtQIc3TzW3CZsirf5deD6dIgyE dtNjCqMCtBqzawHBAZF6rumQxVc9qeFUASGGHQZ2cImI3jJ0tS04l6WnctRdO8B6QhU8 PGx0lmti7USolhZNfeM2PCzKshMiJ8+8owuWN2NIjoVC6uJi9DJpG1vbG0+tuQlPAV2f z3GQ== X-Gm-Message-State: AO0yUKWCXM5LmJU6IGWfuAgNTbYeRTxKSJO+3XwQL5i20SD+b4mUxDKf nwfneeTmp/VYCERisHWeU5zwfT8yRz3L2FsWg03rhg== X-Received: by 2002:a62:5e43:0:b0:593:da8:6f34 with SMTP id s64-20020a625e43000000b005930da86f34mr4506638pfb.5.1677953945540; Sat, 04 Mar 2023 10:19:05 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:62b1:64d8:8207:f04e]) by smtp.gmail.com with ESMTPSA id 25-20020aa79259000000b005d866d184b5sm3529668pfp.46.2023.03.04.10.19.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 10:19:05 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aurelien Jarno , Jiaxun Yang , Aleksandar Rikalo Subject: [PATCH v3 04/20] target/mips: Drop tcg_temp_free from msa_translate.c Date: Sat, 4 Mar 2023 10:18:44 -0800 Message-Id: <20230304181900.1097116-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230304181900.1097116-1-richard.henderson@linaro.org> References: <20230304181900.1097116-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x529.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. Signed-off-by: Richard Henderson --- Cc: Philippe Mathieu-Daudé Cc: Aurelien Jarno Cc: Jiaxun Yang Cc: Aleksandar Rikalo --- 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; }