forked from OSchip/llvm-project
c172f1ad39
When we start outlining across branches, there is the possibility that we will have two different blocks with different output locations, or a single branch that goes to two blocks outside of the region that is being outlined. While the CodeExtractor provides most of the mechanisms by using the return value of the extracted function as the input to a switch statement to correctly branch to the correct location, we need special handling for different output schemas to each location. This is done by repeating the existing storing scheme for each different exit block. We have a map from the return values used, to the basic block that is used to store the outputs for that particular exit block within the outlined function. Then if needed, we create a switch statement for each return block to branch to the correct set of stored outputs. Reviewers: paquette Differential Revision: https://reviews.llvm.org/D106993 |
||
---|---|---|
.. | ||
extraction.ll | ||
illegal-allocas.ll | ||
illegal-assumes.ll | ||
illegal-branches.ll | ||
illegal-callbr.ll | ||
illegal-catchpad.ll | ||
illegal-cleanup.ll | ||
illegal-frozen.ll | ||
illegal-indirect-calls.ll | ||
illegal-invoke.ll | ||
illegal-landingpad.ll | ||
illegal-memcpy.ll | ||
illegal-memmove.ll | ||
illegal-memset.ll | ||
illegal-phi-nodes.ll | ||
illegal-vaarg.ll | ||
legal-debug.ll | ||
opt-remarks.ll | ||
outlining-across-branch.ll | ||
outlining-address-taken.ll | ||
outlining-basic-branches.ll | ||
outlining-bitcasts.ll | ||
outlining-calls.ll | ||
outlining-commutative-fp.ll | ||
outlining-commutative-operands-opposite-order.ll | ||
outlining-commutative.ll | ||
outlining-compatible-and-attribute-transfer.ll | ||
outlining-compatible-or-attribute-transfer.ll | ||
outlining-constants-vs-registers.ll | ||
outlining-cost-model.ll | ||
outlining-debug-statements.ll | ||
outlining-different-constants.ll | ||
outlining-different-globals.ll | ||
outlining-different-output-blocks.ll | ||
outlining-different-structure.ll | ||
outlining-exits-to-phi-node.ll | ||
outlining-gep.ll | ||
outlining-isomorphic-predicates.ll | ||
outlining-multiple-exits-diff-outputs.ll | ||
outlining-multiple-exits-one-output-set.ll | ||
outlining-multiple-exits.ll | ||
outlining-odr.ll | ||
outlining-remapped-outputs.ll | ||
outlining-same-constants.ll | ||
outlining-same-globals.ll | ||
outlining-same-output-blocks.ll | ||
outlining-swift-error.ll | ||
region-end-of-module.ll |