[PATCH] D57919: [CodeExtractor] Restore outputs after creating exit stubs
Sergei Kachkov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 7 11:46:05 PST 2019
kachkov98 created this revision.
kachkov98 added reviewers: vsk, fhahn.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
When CodeExtractor saves the result of InvokeInst at the first insertion point of the 'normal destination' basic block, this block can be omitted in the outlined region, so store is placed outside of the function. The suggested solution is to process saving outputs after creating exit stubs for new function, and stores will be placed in that blocks before return in this case.
Repository:
rL LLVM
https://reviews.llvm.org/D57919
Files:
lib/Transforms/Utils/CodeExtractor.cpp
unittests/Transforms/Utils/CodeExtractorTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57919.185834.patch
Type: text/x-patch
Size: 5716 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190207/e481d118/attachment.bin>
More information about the llvm-commits
mailing list