diff mbox

[i386] Tidy TARGET_LRA_P

Message ID 509D3BB1.6070301@redhat.com
State New
Headers show

Commit Message

Richard Henderson Nov. 9, 2012, 5:21 p.m. UTC
Until and unless we need to do something special in the hook,
use a generic function.  Change this before other targets end
up duplicating the mistake.

Committed.


r~
* config/i386/i386.c (ix86_lra_p): Remove.
        (TARGET_LRA_P): Use hook_bool_void_true.
diff mbox

Patch

diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 3a6f494..60a39b8 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -32856,13 +32856,6 @@  ix86_free_from_memory (enum machine_mode mode)
     }
 }
 
-/* Return true if we use LRA instead of reload pass.  */
-static bool
-ix86_lra_p (void)
-{
-  return true;
-}
-
 /* Return a register priority for hard reg REGNO.  */
 static int
 ix86_register_priority (int hard_regno)
@@ -42119,7 +42112,7 @@  ix86_memmodel_check (unsigned HOST_WIDE_INT val)
 #define TARGET_LEGITIMATE_ADDRESS_P ix86_legitimate_address_p
 
 #undef TARGET_LRA_P
-#define TARGET_LRA_P ix86_lra_p
+#define TARGET_LRA_P hook_bool_void_true
 
 #undef TARGET_REGISTER_PRIORITY
 #define TARGET_REGISTER_PRIORITY ix86_register_priority