On 07/09/2013 09:29 AM, Steve Ellcey wrote: > + /* In MIPS16 mode using the $t registers for reload results in code > + that is larger (and slightly faster) then if we do not use them so > + if optimizing for size, do not use them. */ > + if (optimize_size) > + { > + fixed_regs[8] = call_used_regs[8] = 1; > + fixed_regs[9] = call_used_regs[9] = 1; > + fixed_regs[10] = call_used_regs[10] = 1; > + fixed_regs[11] = call_used_regs[11] = 1; > + fixed_regs[12] = call_used_regs[12] = 1; > + fixed_regs[13] = call_used_regs[13] = 1; > + fixed_regs[14] = call_used_regs[14] = 1; > + fixed_regs[15] = call_used_regs[15] = 1; > + }
Surely the registers are better used by LRA as spill than the stack. Perhaps time better spent enabling LRA for the mips target? r~