This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Take SPAdj into account for STATEPOINT liveness args
ClosedPublic

Authored by cherry on Oct 23 2018, 12:58 PM.

Details

Summary

STATEPOINT records its args' locations on stack relative to SP.
If the SP is changed, take that into account.

Diff Detail

Repository
rL LLVM

Event Timeline

cherry created this revision.Oct 23 2018, 12:58 PM
reames accepted this revision.Nov 25 2018, 7:09 PM
reames added a subscriber: reames.

LGTM. I'm actually a bit uncertain of the semantics of this change, but I doubt we're going to find a better reviewer, so I did my best. :)

p.s. Don't be surprised if you find other issues with statepoints and variable stack sizes. In practice, we use fixed size frames, so the stack adjustment paths may be under tested.

This revision is now accepted and ready to land.Nov 25 2018, 7:09 PM
This revision was automatically updated to reflect the committed changes.

Thank you for the review!