Skip to content
Commit a8461cf9 authored by Jacob Bramley's avatar Jacob Bramley
Browse files

Prefer to use 'rd' as a scratch.

This is generally useful, but in particular reduces scratch register
pressure in code sequences using ComputeAddress. For example:

    MemOperand addr(...);
    UseScratchRegisterScope temps(&masm);
    Register computed = temps.AcquireX();
    __ ComputeAddress(computed, addr);

Before this patch, that sequence usually required two scratch registers;
one for `computed`, and one for immediate synthesis inside
`ComputeAddress`. With this patch, the same code sequence only needs one
scratch register.

Change-Id: I9c93e6cab51bdacf36046d4d770dc81d1a65a34c
parent 32f8fe13
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment