[PATCH] D100927: [InlineSpiller] Handle the case when def is after LIP

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 21 00:23:26 PDT 2021


skatkov created this revision.
skatkov added reviewers: reames, MatzeB, rnk, wmi, qcolombet, void.
Herald added subscribers: pengfei, jfb, hiraditya.
skatkov requested review of this revision.
Herald added a project: LLVM.

If def of LI is after last insertion point of basic block we cannot hoist in this BB.

The example of such instruction is invoke statepoint where def represents the
relocated live gc pointer. Invoke is a last insertion point and its def is located after it.
In this case there is no place to insert spill and we bail out.


https://reviews.llvm.org/D100927

Files:
  llvm/lib/CodeGen/InlineSpiller.cpp
  llvm/test/CodeGen/X86/statepoint-invoke-ra-inline-spiller.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100927.339119.patch
Type: text/x-patch
Size: 32164 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210421/04ef6025/attachment.bin>


More information about the llvm-commits mailing list