[PATCH] D80195: MIR Statepoint refactoring: pass GC pointers in VRegs. Part 4/5.

Denis Antrushin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 19 01:36:10 PDT 2020


dantrushin created this revision.
dantrushin added reviewers: reames, skatkov, qcolombet.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

Change MIR representation of STATEPOINT instruction from explicit
spill/reload of GC pointer arguments around statepoint to simply
assigning them to virtual registers. Then they can be spilled as
necessary. Relocated pointers are represented as STATEPOINT's Def
operands (tied to corresponding derived pointers from GC args list):

  rel1,rel2,... = STATEPOINT ..., derived1<tied-def0>, derived2<tied-def1>, ...

This patch implements memory operand folding for statepoints.
InlineSpiller untie operands it need to fold, because it knows how to
reload them later. But if we asked to fold tied operand we do nothing,
because unaware caller does not know how to reload result.

Depends On: D80193 <https://reviews.llvm.org/D80193>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80195

Files:
  llvm/lib/CodeGen/InlineSpiller.cpp
  llvm/lib/CodeGen/TargetInstrInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80195.264819.patch
Type: text/x-patch
Size: 3374 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200519/bb93b6c6/attachment-0001.bin>


More information about the llvm-commits mailing list