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’


H.J. Lu wrote:
When I add SSE_FIRST_REG/xmm0 to CLASS_LIKELY_SPILLED_P,
all testcases compile. However, xmm0 is used for FP return for
x86-64, I don't know the performance impact of this change.
xmm0 is a fixed register only for a handful SSE4 insns, which
can only be generated from intrinsics. Should we really go down
this route?

Yes, that is the correct fix. As for being a return register, it should be no worse than for eax, which is also likely-spilled.


r~



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