[PATCH] D10909: PrologEpilogInserter: Improve API to determine callee save regsiters.

Matthias Braun matze at braunis.de
Mon Jul 6 11:19:21 PDT 2015


In http://reviews.llvm.org/D10909#198968, @dsanders wrote:

> > ... but I assume this mismatch was not intentional.
>
>
> I can understand why it looks weird but I think it was intentional. For the O32 and N64 ABI's the register in the callee-saved list and actually-used frame/base register should always be the same. However our N32 ABI has 64-bit registers and 32-bit pointers. In N32, the register to be saved/restored by the calling convention is the 64-bit register (because we don't know what it holds) but the register used for the frame/base pointer is the 32-bit register.


Ok, just wanted to make sure. It's easy enough to use the register alias iterator here.


Repository:
  rL LLVM

http://reviews.llvm.org/D10909







More information about the llvm-commits mailing list