jasmin icon indicating copy to clipboard operation
jasmin copied to clipboard

Regalloc: MOV RSP

Open eponier opened this issue 2 years ago • 2 comments

In some cases (e.g. in tests/success/inline_regptr.jazz), regalloc leaves instructions such as RAX = MOV(RSP). Would it be possible to optimize this case and replace RAX with RSP in the rest of the code (that does nothing fancy)? Is it even desirable?

eponier avatar Mar 04 '22 14:03 eponier

IIRC, register allocation never allocates anything to RSP.

vbgl avatar Mar 04 '22 14:03 vbgl

Yes, the question is whether it should or not. I have no opinion on that.

eponier avatar Mar 04 '22 14:03 eponier