[PATCH] D79499: [MachineOutliner] Adding aggressive tail call outlining options.

Puyan Lotfi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 6 09:07:30 PDT 2020


plotfi created this revision.
plotfi added reviewers: paquette, AndrewLitteken.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

This diff introduces an option -aggressive-tail-call-outlining to run the MachineOutliner twice: Once in a special only-tail-calls mode, and then again in its regular mode. There is also an option -aggressive-tail-call-outlining-only to be used for debugging that tells the outliner to bail after outlining just the tail calls.

      

In the only-tail-calls mode, the limitations on W30 <https://reviews.llvm.org/W30> are ignored, resulting in a different suffix tree with longer matches, which are then processed for tail calls only. This has a slight improvement over the newer CFI outlining strategy alone (by one or two instructions).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79499

Files:
  llvm/include/llvm/CodeGen/TargetInstrInfo.h
  llvm/lib/CodeGen/MachineOutliner.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.h
  llvm/test/CodeGen/AArch64/machine-outliner-aggressive-tail.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79499.262396.patch
Type: text/x-patch
Size: 14231 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200506/9c451f2e/attachment.bin>


More information about the llvm-commits mailing list