This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[lra] a tiny patch to improve pseudos splitting


The following patch improves pseudos splitting.

The patch was successfully bootstrapped on x86/x86-64.

Committed as rev. 187656.

2012-05-18 Vladimir Makarov <vmakarov@redhat.com>

* lra-constraints.c (need_for_split_p): Split only when there are at
least 3 potential reloads instead of 2.


Index: lra-constraints.c
===================================================================
--- lra-constraints.c	(revision 187637)
+++ lra-constraints.c	(working copy)
@@ -3894,7 +3894,7 @@ need_for_split_p (HARD_REG_SET potential
 {
   gcc_assert (reg_renumber[regno] >= 0);
   return ((TEST_HARD_REG_BIT (potential_reload_hard_regs, reg_renumber[regno])
-	   && usage_insns[regno].reloads_num + 1 < reloads_num)
+	   && usage_insns[regno].reloads_num + 2 < reloads_num)
 	  || need_for_call_save_p (regno));
 }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]