one more patch to fix PR55433

2013-01-20 Thread Vladimir Makarov
After submitting the previous patch for PR55433, Steven found that powerpc LRA is broken as the original insn for secondary memory reload can not be used in some cases. The following patch fixes the problem. The patch might be not necessary for x86/x86-64 but I submitted it too. The patch w

Re: patch to fix PR55433

2013-01-18 Thread Vladimir Makarov
On 13-01-18 1:34 PM, Steven Bosscher wrote: On Fri, Jan 18, 2013 at 7:25 PM, Vladimir Makarov wrote: PR target/55433 * lra-constraints.c (curr_insn_transform): Reuse original insn for secondary memory move. (inherit_reload_reg): Use rclass instead of cl for

Re: patch to fix PR55433

2013-01-18 Thread Steven Bosscher
On Fri, Jan 18, 2013 at 7:25 PM, Vladimir Makarov wrote: > > PR target/55433 > * lra-constraints.c (curr_insn_transform): Reuse original insn for > secondary memory move. > (inherit_reload_reg): Use rclass instead of cl for > check_secondary_memory_needed_p.

patch to fix PR55433

2013-01-18 Thread Vladimir Makarov
The following patch fixes http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55433 LRA went into infinite reload loop when secondary memory was needed. To fix the problem, two changes are done: o a typo was fixed in inheritance which prevented rejecting inheritances requiring secondary memory relo