When does C1 use the same register for inputs and temps?
Andrew Haley
aph-open at littlepinkcloud.com
Fri Feb 21 10:47:26 UTC 2025
On 2/21/25 02:07, dean.long at oracle.com wrote:
> On 2/20/25 3:38 AM, Andrew Haley wrote:
>
>> Was it simply that way back when, people were trying to use the absolute
>> minimum of registers?
>
> That would be my guess, as it's the only reason I can think of to do
> it. It might have been nice to have the decision made in
> platform-specific code rather than in shared code where it is now.
That makes sense, thanks. I guess they were trying to compile for x32, a
machine with only 8 registers. In that case, an operation with, say, 3
inputs and 3 temps would be quite a challenge.
--
Andrew Haley (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the hotspot-compiler-dev
mailing list