Scratch register allocation in RTLs post reload

Ian Lance Taylor iant@google.com
Thu Dec 1 06:43:00 GMT 2011


Ayonam Ray <ayonam@gmail.com> writes:

> The problem that I face with this is that post reload, in the CSE and
> combine passes, it looks like generating this instruction but is
> unable to allocate the scratch registers (as expected).  Hence it
> fails while trying to match the constraints in post CSE (in function
> reload_cse_simplify_operands).  The scratches do not match the 'r'
> constraint and hence fail.  How do I prevent it from generating this
> instruction post-reload?  Or is there some other solution to it?

Look at the target hook TARGET_SECONDARY_RELOAD.

Ian



More information about the Gcc-help mailing list