This is an archive of the discontinued LLVM Phabricator instance.

[InlineSpiller] Handle the case when def is after LIP
ClosedPublic

Authored by skatkov on Apr 21 2021, 12:23 AM.

Details

Summary

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.

Diff Detail