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

Daniel Sanders daniel.sanders at imgtec.com
Fri Jul 3 03:43:57 PDT 2015


> ... 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.


Repository:
  rL LLVM

http://reviews.llvm.org/D10909







More information about the llvm-commits mailing list