DescriptionX87: Return different allocatable double register number for X87 turbofan / crankshaft seperately.
Currently X87 turbofan backend use only one double register. But crankshaft needs to use more than 1
double register. The reason is that the X87 register is stack-based and the register allocator use
the same algorithm for all registers. So the backend of X87 needs to maintain the X87 stack status
between basic blocks during code generation. But for Turbofan backend, it can only handle discrete
platform-related LIRs. It's difficult to maintain the x87 stack status during different basic blocks.
So we use the register configuration selection mechanism to return different register configuration
for X87 turbofan and crankshaft seperately.
This CL is a follow-up of https://codereview.chromium.org/1405673003/.
BUG=
Committed: https://crrev.com/4fe366f121103c36d85fe166b8e246ad56245d09
Cr-Commit-Position: refs/heads/master@{#31492}
Patch Set 1 #
Messages
Total messages: 8 (2 generated)
|