[PATCH] D78605: [MachineOutliner] Teach outliner to set live-ins

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 21 17:53:17 PDT 2020


efriedma created this revision.
efriedma added a reviewer: paquette.
Herald added subscribers: luismarques, apazos, sameer.abuasal, pzheng, s.egerton, lenary, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, MaskRay, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
Herald added a project: LLVM.

Preserving liveness can be useful even late in the pipeline, if we're doing substantial optimization work afterwards. (See, for example, D76065 <https://reviews.llvm.org/D76065>.)  Teach MachineOutliner how to correctly set live-ins on the basic block in outlined functions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78605

Files:
  llvm/lib/CodeGen/MachineOutliner.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
  llvm/test/CodeGen/AArch64/machine-outliner-calls.mir
  llvm/test/CodeGen/AArch64/machine-outliner-cfi-tail.mir
  llvm/test/CodeGen/AArch64/machine-outliner-retaddr-sign-sp-mod.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78605.259138.patch
Type: text/x-patch
Size: 5802 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200422/1b7dc97f/attachment.bin>


More information about the llvm-commits mailing list