[PATCH] D108673: [CodeExtractor] Preserve topological order for the return blocks.

Vyacheslav Zakharin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 24 16:25:19 PDT 2021


vzakhari created this revision.
vzakhari added reviewers: AndrewLitteken, jroelofs.
Herald added subscribers: ormris, hiraditya.
vzakhari requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Place the extracted blocks after the entry block of the new function to keep the created return blocks topologically ordered to the original blocks.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108673

Files:
  llvm/lib/Transforms/IPO/IROutliner.cpp
  llvm/lib/Transforms/Utils/CodeExtractor.cpp
  llvm/test/Transforms/CodeExtractor/LoopExtractor.ll
  llvm/test/Transforms/CodeExtractor/LoopExtractor_crash.ll
  llvm/test/Transforms/CodeExtractor/LoopExtractor_infinite.ll
  llvm/test/Transforms/CodeExtractor/live_shrink_unsafe.ll
  llvm/test/Transforms/CodeExtractor/unreachable-block.ll
  llvm/test/Transforms/HotColdSplit/multiple-exits.ll
  llvm/test/Transforms/IROutliner/outlining-different-output-blocks.ll
  llvm/test/Transforms/IROutliner/outlining-same-output-blocks.ll
  llvm/test/Transforms/OpenMP/parallel_region_merging.ll
  llvm/test/tools/llvm-extract/extract-blocks-with-groups.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108673.368494.patch
Type: text/x-patch
Size: 28425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210824/308f7459/attachment-0001.bin>


More information about the llvm-commits mailing list