From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1880) id B11693858C53; Tue, 13 Sep 2022 11:29:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B11693858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663068590; bh=EUQLZVA0dIZpyEb9hlRc0XlO5rKQ6w0P/1WRAgTTUO4=; h=From:To:Subject:Date:From; b=MwjuvqdOlWNkIvqKbgXY7AXZ1z5EgkACBmRn7+aU6qXa3QLyBI20c1RBQ/M8wS+6/ A4R99rCmXFSL1qPXzf1WrVNB6EZOEcxRzgam4k0xh2q+5vlbKDe0wzq9jPaikCWvGv iHS45jUzmOBDM2eSbZcw3rSzOENqep5h8XUgcg/0= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Max Filippov To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-2644] Revert "xtensa: Implement new target hook: TARGET_CONSTANT_OK_FOR_CPROP_P" X-Act-Checkin: gcc X-Git-Author: Max Filippov X-Git-Refname: refs/heads/master X-Git-Oldrev: 38db48346cc045ed5656233c42d01d6d06bffc35 X-Git-Newrev: 48e40d0b658c0b7989dfbe67468430b532bcbbe9 Message-Id: <20220913112950.B11693858C53@sourceware.org> Date: Tue, 13 Sep 2022 11:29:50 +0000 (GMT) List-Id: https://gcc.gnu.org/g:48e40d0b658c0b7989dfbe67468430b532bcbbe9 commit r13-2644-g48e40d0b658c0b7989dfbe67468430b532bcbbe9 Author: Max Filippov Date: Tue Sep 13 04:28:16 2022 -0700 Revert "xtensa: Implement new target hook: TARGET_CONSTANT_OK_FOR_CPROP_P" This reverts commit 936efcac733fe49e5ea9e636403e5941f24ff1b3. Diff: --- gcc/config/xtensa/xtensa.cc | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc index cc1829d4aba..f1b3331ea55 100644 --- a/gcc/config/xtensa/xtensa.cc +++ b/gcc/config/xtensa/xtensa.cc @@ -191,7 +191,6 @@ static bool xtensa_can_eliminate (const int from ATTRIBUTE_UNUSED, static HOST_WIDE_INT xtensa_starting_frame_offset (void); static unsigned HOST_WIDE_INT xtensa_asan_shadow_offset (void); static bool xtensa_function_ok_for_sibcall (tree, tree); -static bool xtensa_constant_ok_for_cprop_p (const_rtx); static rtx xtensa_delegitimize_address (rtx); @@ -346,15 +345,12 @@ static rtx xtensa_delegitimize_address (rtx); #undef TARGET_HAVE_SPECULATION_SAFE_VALUE #define TARGET_HAVE_SPECULATION_SAFE_VALUE speculation_safe_value_not_needed -#undef TARGET_FUNCTION_OK_FOR_SIBCALL -#define TARGET_FUNCTION_OK_FOR_SIBCALL xtensa_function_ok_for_sibcall - -#undef TARGET_CONSTANT_OK_FOR_CPROP_P -#define TARGET_CONSTANT_OK_FOR_CPROP_P xtensa_constant_ok_for_cprop_p - #undef TARGET_DELEGITIMIZE_ADDRESS #define TARGET_DELEGITIMIZE_ADDRESS xtensa_delegitimize_address +#undef TARGET_FUNCTION_OK_FOR_SIBCALL +#define TARGET_FUNCTION_OK_FOR_SIBCALL xtensa_function_ok_for_sibcall + struct gcc_target targetm = TARGET_INITIALIZER; @@ -4987,16 +4983,6 @@ xtensa_function_ok_for_sibcall (tree decl ATTRIBUTE_UNUSED, tree exp ATTRIBUTE_U return true; } -/* Implement TARGET_CONSTANT_OK_FOR_CPROP_P. */ -static bool -xtensa_constant_ok_for_cprop_p (const_rtx x) -{ - if (CONST_INT_P (x) && ! xtensa_simm12b (INTVAL (x))) - return false; - - return true; -} - static rtx xtensa_delegitimize_address (rtx op) {