Re: [IRA] Query about improve_allocation() routine in IRA

2023-04-20 Thread Vladimir Makarov via Gcc
On 4/19/23 14:53, Surya Kumari Jangala wrote: ... I have a few queries: 1. A zero cost seems strange for the regs r14-r31. If using a reg in the set [14..31] has zero cost, then why wasn’t such a reg chosen for r118 in the first place, instead of r3? I guess it is because assign_hard_reg (s

[IRA] Query about improve_allocation() routine in IRA

2023-04-19 Thread Surya Kumari Jangala via Gcc
Hi Vladimir, I have been analyzing a test case for which shrink wrapping fails (on powerpc, 64bit LE). But if the same test case is slightly modified, shrink wrapping kicks in. Here are the two tests: Test1 (shrink wrapped) long foo (long i, long cond) { i = i + 1; if (cond) bar (); r