[LLVMdev] [LLVMDev] Reserved Registers

Jeff Kunkel jdkunk3 at gmail.com
Tue Nov 9 09:21:49 PST 2010


My mistake, the passes before this block created the instruction

ADJCALLSTACKDOWN32 12, %ESP<imp-def,dead>, %EFLAGS<imp-def,dead>,
%ESP<imp-use>

which uses ESP.

- Jeff

On Tue, Nov 9, 2010 at 12:20 PM, Jeff Kunkel <jdkunk3 at gmail.com> wrote:

> So, there exists registers which are reserved denoted by the Machine
> Register Info :: getReserved field. I am wondering if these registers are
> reserved or preserved?
>
> I have come across a case where a reserved register was used. Namely it's
> in "llvm\test\CodeGen\X86\2009-04-27-CoalescerAssert.ll" where the reserved
> register ESP (54) in block "bb98.fragment" on line 854. Is this use of a
> reserved register a mistake or not?
>
> Thanks,
> Jeff Kunkel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101109/525b212c/attachment.html>


More information about the llvm-dev mailing list