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]

Re: PATCH: PR target/40470: unabl e to find a register to spill in class ‘SSE_FIRST_REG’


Vladimir Makarov wrote:
Jeff Law wrote:
Vladimir Makarov wrote:
IRA does not generate spill code for insn constraints. Reload does it. To fix it in reload (spill and restore hard registers) is not a trivial task and potentially distracting compiler stability for many targets. So I'd rather avoid it even if it could solve other passes problems like 1st insn scheduling for x86/x86_64.

The originally problem occurs in the combiner (it propagates xmm0 usage right after a call through the insn in question). So imho I think the best way is to fix in the combiner.
Is xmm0 the return value for the call? ie, is it the SET_DEST of the call?


I looked at this problem. It looks like

xmm0=call
p666= xmm0
...
insn in the question (spill failure because it needs xmm0)
...
= p666, dead p666

The combiner removes p666=xmm0 and uses xmm0 instead of p666 in the last insn.
OK. That definitely sounds like a combiner problem.

jeff


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