From nobody Mon Feb 9 17:25:26 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail header.i=@quicinc.com; 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=fail(p=none dis=none) header.from=quicinc.com ARC-Seal: i=1; a=rsa-sha256; t=1622589873; cv=none; d=zohomail.com; s=zohoarc; b=mLpwGOY1d7G63ImT8AzKxWBMXhhLRPvuG1NUsLbXMFksIIx5nNszT3swKhl5oBixpiGOW3LDTn0tXwE8J3msSxPa8O/VyIyk0S7t/rPHqx66+8ZzrSgRlrZReZHHjtoYOpLL0b+ExYYr7UKXzndmmvdYkeC8csWKNOXb16CmQfw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622589873; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Rv5DBS1Musmf13fPECtlUJXKVvSBh0Y++ngJBgfyDeA=; b=SFLZKIEFKnYItvemSagNkIuW8Boz0uqrSJIoiJfDrMaTw7fqxQpe0pvVxbPzXzy2f+ydbcU4LsugBWhRPu209JZfu0ZrrreUZdcuYjwm0SvD5febUc139114clta2aVflX3K0tUjpZLuUx1LD2b/a3tJDHfYcjvE2Lqn6pa55CI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail header.i=@quicinc.com; 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=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622589873137128.38730381714004; Tue, 1 Jun 2021 16:24:33 -0700 (PDT) Received: from localhost ([::1]:44004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loDkO-0003TA-48 for importer@patchew.org; Tue, 01 Jun 2021 19:24:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loDfu-0003oE-Pt for qemu-devel@nongnu.org; Tue, 01 Jun 2021 19:19:54 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:25587) by eggs.gnu.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1loDfs-00068D-R8 for qemu-devel@nongnu.org; Tue, 01 Jun 2021 19:19:54 -0400 Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 01 Jun 2021 16:19:46 -0700 Received: from vu-tsimpson-aus.qualcomm.com (HELO vu-tsimpson1-aus.qualcomm.com) ([10.222.150.1]) by ironmsg01-sd.qualcomm.com with ESMTP; 01 Jun 2021 16:19:46 -0700 Received: by vu-tsimpson1-aus.qualcomm.com (Postfix, from userid 47164) id 4EC89F03; Tue, 1 Jun 2021 18:19:46 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1622589592; x=1654125592; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Rv5DBS1Musmf13fPECtlUJXKVvSBh0Y++ngJBgfyDeA=; b=oqK0ZP+aYgyw4SE0FEm0bZTxpVOyZNZm6CVE4upmC4LAMyR/h12PeAI4 nchA8DKHvGK55gRI456xFK5xV7Ub2AMjRLxg4dgWpsywJXqIzx+ZDJCD2 6DedmK3fIw4sFRAUZ52HChUcaI1MJTudjD61ClRPItqEMmh2tKO2WVjnx k=; X-QCInternal: smtphost From: Taylor Simpson To: qemu-devel@nongnu.org Subject: [PATCH v2 4/4] Hexagon (target/hexagon) remove unused TCG variables Date: Tue, 1 Jun 2021 18:19:44 -0500 Message-Id: <1622589584-22571-5-git-send-email-tsimpson@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1622589584-22571-1-git-send-email-tsimpson@quicinc.com> References: <1622589584-22571-1-git-send-email-tsimpson@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=199.106.114.39; envelope-from=tsimpson@qualcomm.com; helo=alexa-out-sd-02.qualcomm.com X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_MED=-2.3, 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ale@rev.ng, philmd@redhat.com, tsimpson@quicinc.com, richard.henderson@linaro.org, bcain@quicinc.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson --- target/hexagon/genptr.c | 6 ------ target/hexagon/translate.c | 11 ++--------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/target/hexagon/genptr.c b/target/hexagon/genptr.c index bd18cb1..5dbabe0 100644 --- a/target/hexagon/genptr.c +++ b/target/hexagon/genptr.c @@ -121,10 +121,7 @@ static void gen_log_reg_write_pair(int rnum, TCGv_i64 = val) =20 static inline void gen_log_pred_write(DisasContext *ctx, int pnum, TCGv va= l) { - TCGv zero =3D tcg_const_tl(0); TCGv base_val =3D tcg_temp_new(); - TCGv and_val =3D tcg_temp_new(); - TCGv pred_written =3D tcg_temp_new(); =20 tcg_gen_andi_tl(base_val, val, 0xff); =20 @@ -143,10 +140,7 @@ static inline void gen_log_pred_write(DisasContext *ct= x, int pnum, TCGv val) } tcg_gen_ori_tl(hex_pred_written, hex_pred_written, 1 << pnum); =20 - tcg_temp_free(zero); tcg_temp_free(base_val); - tcg_temp_free(and_val); - tcg_temp_free(pred_written); } =20 static inline void gen_read_p3_0(TCGv control_reg) diff --git a/target/hexagon/translate.c b/target/hexagon/translate.c index 9a37644..b23d36a 100644 --- a/target/hexagon/translate.c +++ b/target/hexagon/translate.c @@ -273,7 +273,6 @@ static void gen_reg_writes(DisasContext *ctx) =20 static void gen_pred_writes(DisasContext *ctx, Packet *pkt) { - TCGv zero, control_reg, pval; int i; =20 /* Early exit if the log is empty */ @@ -281,10 +280,6 @@ static void gen_pred_writes(DisasContext *ctx, Packet = *pkt) return; } =20 - zero =3D tcg_const_tl(0); - control_reg =3D tcg_temp_new(); - pval =3D tcg_temp_new(); - /* * Only endloop instructions will conditionally * write a predicate. If there are no endloop @@ -292,6 +287,7 @@ static void gen_pred_writes(DisasContext *ctx, Packet *= pkt) * write of the predicates. */ if (pkt->pkt_has_endloop) { + TCGv zero =3D tcg_const_tl(0); TCGv pred_written =3D tcg_temp_new(); for (i =3D 0; i < ctx->preg_log_idx; i++) { int pred_num =3D ctx->preg_log[i]; @@ -302,6 +298,7 @@ static void gen_pred_writes(DisasContext *ctx, Packet *= pkt) hex_new_pred_value[pred_num], hex_pred[pred_num]); } + tcg_temp_free(zero); tcg_temp_free(pred_written); } else { for (i =3D 0; i < ctx->preg_log_idx; i++) { @@ -314,10 +311,6 @@ static void gen_pred_writes(DisasContext *ctx, Packet = *pkt) } } } - - tcg_temp_free(zero); - tcg_temp_free(control_reg); - tcg_temp_free(pval); } =20 static void gen_check_store_width(DisasContext *ctx, int slot_num) --=20 2.7.4