From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omggw0013-vm1.mail.otm.yahoo.co.jp (omggw0013-vm1.mail.otm.yahoo.co.jp [182.22.18.211]) by sourceware.org (Postfix) with ESMTPS id A8EA93858D20 for ; Sun, 18 Jun 2023 07:10:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A8EA93858D20 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=yahoo.co.jp Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yahoo.co.jp X-YMail-OSG: Ipg4e_EVM1mGWO5TnPpTsU0JRL.Gjy2BSLw4nzkrBGgABg3WnH.Q7n3_JYjX9lA ghSOF1ekLSdHikd7F1EoE9pBqjzgLP.2oQSxOwD9Pgou2F8T2snPy_XgnjgFO_HXH_HpfjzKY07U 0wokH2_X9l0rcMbEXlvR.gBkh77SwVGsSJ9ery9hOf5B7LygS3hZ2K5rr0n5tzqlFZN8g5X_dOVr jvmZc4HeSxdPix0IjquSgJcV7Zq9U3gL5VdX.RjA.0jfGGZopP5fVJrCJPMJZ3HCP0DEN2GjuYU1 yESXSC72YdBrTtgUxug3ff2ddcpQXm8Xy4t_Kz4oWYW2YalSUQguoM0ddTPAYDHizcSoQj9mO3L8 w3p.y_5OscPfQcg_AMYXupCihnsKkenSymeeJX4yibW1surF2tM7gbWzwHXXxGALNHXwXHbwAfAp f9qfpLi.wXmy49mvTfjU6OKNRNyY86YTglYrlgXM_D7quxpk_rhFyO8IIQsrOLcMciZ_E_EkyxMD 0qF9wBcvjrIZK34xHbKsjJt_MZZ5tqhvOpafN8dPW6Ctp31o_ODISeajxeVxsPlRERUO435j0Zrp 8x8dDd_a2nbtMj.kecmxsgL2bYWdFIHX1MZmkd2laGp7OuAoC_Bf.jx8ekT58CuYp0lDEuC10UCd dJXTYKIr9lCVGOH0xKwImGQgR_NWNClHmUjmZy5UVUb8wZAcPxkSfFqP5g2iwVAGvZLp2fu4Zc_. QONkAA8VxfNclEoaLysBjTg65vDu9feyw9R4jkFJJ2jJA1DAHu1D6Gss.5_kosuA9bbzTo08WmE5 XwRBNv3omRiOuxC2V8TV.bMrRR4jfZo1Mi0FzSWgd3rFcFP8rWbXjfoFnrsKXj0Nd58sApU8_Cv2 JbtoMTePrguPDYZMd2HyIKtlw.rWe8UkNx02WmUf9McDf89teHjxG_Fp0XPYbpsUd_qu.95co.5a xst50OzYXlwEBdngYKttkBm9MEO252tbLCOVWK493.NK6eG2xRVjvlq_Wh.Q354Na5A-- Received: from sonicgw.mail.yahoo.co.jp by sonicconh6002.mail.ssk.yahoo.co.jp with HTTP; Sun, 18 Jun 2023 07:10:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1687072203; s=yj20110701; d=yahoo.co.jp; h=Message-ID:Date:MIME-Version:To:Cc:From:Subject:Content-Type:Content-Transfer-Encoding:References; bh=kImRHuycDAIEXkVaARckS9HKvZ7pC8RB5wjzirA8g58=; b=EOdpvIPr478XTuWmBQI+O76t1rnWKm5f/Vc7gSys6o1yJNDve14AVZPBFaFzVrCj tnBDDBBPfv3JVr47RmOkv6jUgowP7IBaN/04bwNPmjwU/TySY79NjJj/KH8RDuw2kL/ jePIxyFgRjS6nHOxN3q8a7ZrdMPkT3FArBslzd6A= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:Date:MIME-Version:Cc:From:Content-Type:Content-Transfer-Encoding:References; b=OTLQvLfIbeb41CcJ7mjtYbwZYHaxfQ0e9ekrOVpmSerPa+crzWoU4Fdp1Jht7/7u 1hX9tlkTWh+2ledMc/ETCQQE4hje09FB9p6cgLlscpmokn2Wg3XY1ISPn99uuYruI0Y blGL457mB3a+wpEWEBH8cUzKyMorlAIgD0se9Xuc=; Received: by smtphe5003.mail.kks.ynwp.yahoo.co.jp (YJ Hermes SMTP Server) with ESMTPA ID 9d48f23be46a11a199b917a14162a6a4; Sun, 18 Jun 2023 16:10:01 +0900 (JST) Message-ID: <9e970f70-52e4-183e-b6af-91f62607793d@yahoo.co.jp> Date: Sun, 18 Jun 2023 16:07:12 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 To: GCC Patches Cc: Max Filippov From: Takayuki 'January June' Suwa Subject: [PATCH 1/2] xtensa: Remove TARGET_MEMORY_MOVE_COST hook Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: <9e970f70-52e4-183e-b6af-91f62607793d.ref@yahoo.co.jp> X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: It used to always return a constant 4, which is same as the default behavior, but doesn't take into account the effects of secondary reloads. Therefore, the implementation of this target hook is removed. gcc/ChangeLog: * config/xtensa/xtensa.cc (TARGET_MEMORY_MOVE_COST, xtensa_memory_move_cost): Remove. --- gcc/config/xtensa/xtensa.cc | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc index 3b5d25b660a..721c99b56a3 100644 --- a/gcc/config/xtensa/xtensa.cc +++ b/gcc/config/xtensa/xtensa.cc @@ -131,7 +131,6 @@ static bool xtensa_rtx_costs (rtx, machine_mode, int, int, int *, bool); static int xtensa_insn_cost (rtx_insn *, bool); static int xtensa_register_move_cost (machine_mode, reg_class_t, reg_class_t); -static int xtensa_memory_move_cost (machine_mode, reg_class_t, bool); static tree xtensa_build_builtin_va_list (void); static bool xtensa_return_in_memory (const_tree, const_tree); static tree xtensa_gimplify_va_arg_expr (tree, tree, gimple_seq *, @@ -213,8 +212,6 @@ static rtx xtensa_delegitimize_address (rtx); #undef TARGET_REGISTER_MOVE_COST #define TARGET_REGISTER_MOVE_COST xtensa_register_move_cost -#undef TARGET_MEMORY_MOVE_COST -#define TARGET_MEMORY_MOVE_COST xtensa_memory_move_cost #undef TARGET_RTX_COSTS #define TARGET_RTX_COSTS xtensa_rtx_costs #undef TARGET_INSN_COST @@ -4356,16 +4353,6 @@ xtensa_register_move_cost (machine_mode mode ATTRIBUTE_UNUSED, return 10; } -/* Worker function for TARGET_MEMORY_MOVE_COST. */ - -static int -xtensa_memory_move_cost (machine_mode mode ATTRIBUTE_UNUSED, - reg_class_t rclass ATTRIBUTE_UNUSED, - bool in ATTRIBUTE_UNUSED) -{ - return 4; -} - /* Compute a (partial) cost for rtx X. Return true if the complete cost has been computed, and false if subexpressions should be scanned. In either case, *TOTAL contains the cost result. */ -- 2.30.2