[PATCH] D111114: [STATEPOINT] Force implicit-def for lpr register.

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 4 21:49:18 PDT 2021


skatkov created this revision.
skatkov added reviewers: reames, loicottet, ostannard.
Herald added subscribers: hiraditya, kristof.beyls.
skatkov requested review of this revision.
Herald added a project: LLVM.

STATEPOINT instruction behavior is similar to call instruction.
In aarch64 BL instruction implicitly define lpr register, so
STATEPOINT instruction should do the same.
However STATEPOINT is a general instruction and I could not find
a way to override list of implicit defs for specific architecture.

So this patch post processes inserting STATEPOINT instruction by
adding implicit dead def for lpr.


https://reviews.llvm.org/D111114

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/statepoint-call-lowering.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111114.377085.patch
Type: text/x-patch
Size: 7259 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211005/41cae188/attachment.bin>


More information about the llvm-commits mailing list