From patchwork Mon Mar 6 00:38:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 659146 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp1572550wrb; Sun, 5 Mar 2023 16:42:16 -0800 (PST) X-Google-Smtp-Source: AK7set/wUjb1LbPRPBtgbj/2eHfczUTNw5DWJqshbzBBu1Ui5IJv4SW9nOgfKqxCzA6wpaQabh2z X-Received: by 2002:a05:622a:110:b0:3b8:4adb:c603 with SMTP id u16-20020a05622a011000b003b84adbc603mr14360339qtw.60.1678063336099; Sun, 05 Mar 2023 16:42:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678063336; cv=none; d=google.com; s=arc-20160816; b=nJ8UCeSbHjkvfBaoE47cM9z34dup7Y5b5DgV6Ds7L7fq4O9wh9M1L7Oz2qWQsee2FS VHwkhRv4WIFb/9ewomRigNiKTqXEFn0i0F+arjC0ZdERP0fq7RZUvu+x/3ofKWFXk2w5 rdURTQZQFBbOXPzRSyO3D0lKhFxSwPPwAD7WP456G3SLR3QuahvjqKGsgdHrnCMfkXRs SOmrfb1M/eVjMBKLM4YAdAldMIhfhaOev7hzRCBsos+ZkuoWYeVsLT6xaoMHnCkp4t9q iJalZgdb87kQ4McVNvWxu7I6Jsin+cwp+ZiW9sbgiIbutc4bfmuRkVYQmowovVxCJ9od Ad6w== 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=suPMvxkX4YRbo9tBACge3bqVScCEDIjRW31dN8trKnE=; b=d7nNw6Srj5Uh5V1sC9Gk5YM0yyt1Ob6Q9sMsYLS8HJWvf7gU/ot9pKeyGkY8px9NRP iNFfT9+82E5iXQmUzmqcjLq5RBWINB+0JdAJ9OA7wfpqO/dYUM6lASVxpawo/eW4qXl3 HvPNLhKGsZ6Gn+HJ4zAWRcalyXvXhJwkEyYvgnXJwQr7OQmbvcbqcYys9eRR0Nxp+Syj 4bREeOWoOSjgfsMxH3OnWc1Jvnm92rEgHqZ/eZ3WQuhimvvcZE0Q/7TZgpoXZw9UY9Qb Xe+V/n28nKxFYVNfIvgdOhq+LyyHQ/RZMIFLbYO2+Z8OsyIjGfApa8sy/YatbK1FY4BQ hVog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P00zW39D; 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 v11-20020a05620a440b00b00738e395d9c6si6754121qkp.114.2023.03.05.16.42.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 05 Mar 2023 16:42:16 -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=P00zW39D; 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 1pYyuX-00055x-IT; Sun, 05 Mar 2023 19:41:05 -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 1pYytp-0004Sj-7j for qemu-devel@nongnu.org; Sun, 05 Mar 2023 19:40:23 -0500 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYytn-0006eK-Ib for qemu-devel@nongnu.org; Sun, 05 Mar 2023 19:40:21 -0500 Received: by mail-pj1-x1035.google.com with SMTP id x34so8200981pjj.0 for ; Sun, 05 Mar 2023 16:40:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678063218; 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=suPMvxkX4YRbo9tBACge3bqVScCEDIjRW31dN8trKnE=; b=P00zW39D6jiAUHfJLq20sz36WTfjd7PGrLVpZAB5CXLPEdg67ZrcXiFxBlgvVAMNFC tFZhdLTA2gDH5pKmoOmZUqt/putBJcICdxOUhjxlW9S0F6bLrJ+VZ+34+A1UMMuSNsSg csClq3h5UBDpxJtzOQu/AKBvoY7wJa4tc1BVw+wps1qn5/N+8wH8PA7Y13jN6j12kRux 7jhWNqvQ1O7Pg//TrjoSI0Kian2ULK1g3eUR6NCKwQKAWc8CTC0Wcs+0OtIFJWSTPd0Y CL9B6vTs4qmNX9vURTW9VRiuzZkvijhJ1HDzlHfA32/AiWG4OdVo+BGdeOVuGIyTIS3Z pAsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678063218; 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=suPMvxkX4YRbo9tBACge3bqVScCEDIjRW31dN8trKnE=; b=D0NBxOakcblv5q6/UQk0YpX69y63Q6xOw4S+l+FVH1ocqVnFAmwU3wVGCFUuNf80uM eEJNX0YI3ruVcTdbyLQoNMgPSpEXSlWXtDNgDcFNhMsyziaFG6zbPGjXz8IFno3hN9xf QqsA6gjzp7H5AhIfuZQVnNg1eRXTU2FxGJP3O+ZfbKorcwa2hTnsYwdiMWzBSd0XoyrY k2X4Becx7kQuhfZ6eSQZg40b5EhJ7pi/t1Iu8WB2NDvG3BGtMxGAE3PhaxOvj8NG33p4 fydqEKmfngLqCNya5PHRwhFyUMjMsAqK4vJv9S63Om/xVdrBhbKc0A71N6OgVRlJwtes +AAg== X-Gm-Message-State: AO0yUKXHPVq58Up3o4iC9EA8h7YMP6eaYdjdnoMCfoEPcGUOzhOiraoe wF+oVB8E8ruPrh9ME32svgF9Zo0gnRa9E8RNp5E2ZQ== X-Received: by 2002:a17:90b:33c4:b0:234:bf0:86bc with SMTP id lk4-20020a17090b33c400b002340bf086bcmr9271407pjb.31.1678063218016; Sun, 05 Mar 2023 16:40:18 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:87cc:49bb:2900:c08b]) by smtp.gmail.com with ESMTPSA id r13-20020a17090b050d00b002372106a5c2sm6567901pjz.37.2023.03.05.16.40.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Mar 2023 16:40:17 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org Subject: [PULL 25/84] target/arm: Drop tcg_temp_free from translator-sme.c Date: Sun, 5 Mar 2023 16:38:55 -0800 Message-Id: <20230306003954.1866998-26-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230306003954.1866998-1-richard.henderson@linaro.org> References: <20230306003954.1866998-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1035.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: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/tcg/translate-sme.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/target/arm/tcg/translate-sme.c b/target/arm/tcg/translate-sme.c index 7b87a9df63..e3adba314e 100644 --- a/target/arm/tcg/translate-sme.c +++ b/target/arm/tcg/translate-sme.c @@ -97,7 +97,6 @@ static TCGv_ptr get_tile_rowcol(DisasContext *s, int esz, int rs, /* Add the byte offset to env to produce the final pointer. */ addr = tcg_temp_new_ptr(); tcg_gen_ext_i32_ptr(addr, tmp); - tcg_temp_free_i32(tmp); tcg_gen_add_ptr(addr, addr, cpu_env); return addr; @@ -166,11 +165,6 @@ static bool trans_MOVA(DisasContext *s, arg_MOVA *a) h_fns[a->esz](t_za, t_zr, t_za, t_pg, t_desc); } } - - tcg_temp_free_ptr(t_za); - tcg_temp_free_ptr(t_zr); - tcg_temp_free_ptr(t_pg); - return true; } @@ -237,10 +231,6 @@ static bool trans_LDST1(DisasContext *s, arg_LDST1 *a) fns[a->esz][be][a->v][mte][a->st](cpu_env, t_za, t_pg, addr, tcg_constant_i32(desc)); - - tcg_temp_free_ptr(t_za); - tcg_temp_free_ptr(t_pg); - tcg_temp_free_i64(addr); return true; } @@ -260,8 +250,6 @@ static bool do_ldst_r(DisasContext *s, arg_ldstr *a, GenLdStR *fn) base = get_tile_rowcol(s, MO_8, a->rv, imm, false); fn(s, base, 0, svl, a->rn, imm * svl); - - tcg_temp_free_ptr(base); return true; } @@ -286,11 +274,6 @@ static bool do_adda(DisasContext *s, arg_adda *a, MemOp esz, pm = pred_full_reg_ptr(s, a->pm); fn(za, zn, pn, pm, tcg_constant_i32(desc)); - - tcg_temp_free_ptr(za); - tcg_temp_free_ptr(zn); - tcg_temp_free_ptr(pn); - tcg_temp_free_ptr(pm); return true; } @@ -318,11 +301,6 @@ static bool do_outprod(DisasContext *s, arg_op *a, MemOp esz, pm = pred_full_reg_ptr(s, a->pm); fn(za, zn, zm, pn, pm, tcg_constant_i32(desc)); - - tcg_temp_free_ptr(za); - tcg_temp_free_ptr(zn); - tcg_temp_free_ptr(pn); - tcg_temp_free_ptr(pm); return true; } @@ -346,12 +324,6 @@ static bool do_outprod_fpst(DisasContext *s, arg_op *a, MemOp esz, fpst = fpstatus_ptr(FPST_FPCR); fn(za, zn, zm, pn, pm, fpst, tcg_constant_i32(desc)); - - tcg_temp_free_ptr(za); - tcg_temp_free_ptr(zn); - tcg_temp_free_ptr(pn); - tcg_temp_free_ptr(pm); - tcg_temp_free_ptr(fpst); return true; }