This is an archive of the discontinued LLVM Phabricator instance.

MIR Statepoint refactoring. Part 5: Handle non-local relocates in ISEL.
AbandonedPublic

Authored by dantrushin on Jul 16 2020, 10:02 AM.

Details

Reviewers
reames
skatkov
Summary

When gc.relocate is in different basic block from statepoint,
corresponding statepoint result must be exported to register.
Default LLVM mechanism does not work here, because on IR level
statepoint does not produce relocated values.
We have to manually export statepoint results into register and
copy it back at gc.relocate location. We also need a dedicated
map for that because we cannot use FunctionLowering.ValueMap.
Depends On D81648

Diff Detail

Event Timeline

dantrushin created this revision.Jul 16 2020, 10:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 16 2020, 10:02 AM

Remove accidently added test option

Another attempt

reames requested changes to this revision.Jul 29 2020, 9:26 AM

JFYI, I've posted (and now landed after review) the subset of this patch which is mostly NFC here: https://reviews.llvm.org/D84692

I plan to reimplement the functional change (i.e. the rest of it) shortly.

I ended up duplicating Denis's work here by accident, but we at least arrived at a common solution (modulo style), so that's a good sign.

Marking as Request Changes to indicate need to either close or rebase if there's anything left.

This revision now requires changes to proceed.Jul 29 2020, 9:26 AM
dantrushin abandoned this revision.Aug 5 2020, 7:11 AM