llvm-project/llvm/test/Transforms/IROutliner
Andrew Litteken 05b1a15f70 [IROutliner] Adapting to hoisted bitcasts in CodeExtractor
In commit 700d2417d8 the CodeExtractor
was updated so that bitcasts that have lifetime markers that beginning
outside of the region are deduplicated outside the region and are not
used as an output.  This caused a discrepancy in the IROutliner, where
in these cases there were arguments added to the aggregate function
that were not needed causing assertion errors.

The IROutliner queries the CodeExtractor twice to determine the inputs
and outputs, before and after `findAllocas` is called with the same
ValueSet for the outputs causing the duplication. This has been fixed
with a dummy ValueSet for the first call.

However, the additional bitcasts prevent us from using the same
similarity relationships that were previously defined by the
IR Similarity Analysis Pass. In these cases, we check whether the
initial version of the region being analyzed for outlining is still the
same as it was previously.  If it is not, i.e. because of the additional
bitcast instructions from the CodeExtractor, we discard the region.

Reviewers: yroux

Differential Revision: https://reviews.llvm.org/D94303
2021-01-13 11:10:37 -06:00
..
extraction.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
illegal-allocas.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
illegal-assumes.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
illegal-branches.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
illegal-callbr.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
illegal-catchpad.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
illegal-cleanup.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
illegal-frozen.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
illegal-indirect-calls.ll [IRSim][IROutliner] Allowing call instructions to be outlined. 2020-12-31 23:01:29 -06:00
illegal-invoke.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
illegal-landingpad.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
illegal-memcpy.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
illegal-memmove.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
illegal-memset.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
illegal-phi-nodes.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
illegal-vaarg.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
legal-debug.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
opt-remarks.ll [IROutliner] Refactoring errors in the cost model from past patches. 2021-01-04 00:11:18 -06:00
outlining-address-taken.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
outlining-bitcasts.ll [IROutliner] Adapting to hoisted bitcasts in CodeExtractor 2021-01-13 11:10:37 -06:00
outlining-calls.ll [IROutliner] Removing a duplicate addition, causing overestimates in IROutliner. 2021-01-03 23:36:28 -06:00
outlining-commutative-fp.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
outlining-commutative.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
outlining-compatible-and-attribute-transfer.ll [IROutliner] Removing a duplicate addition, causing overestimates in IROutliner. 2021-01-03 23:36:28 -06:00
outlining-compatible-or-attribute-transfer.ll [IROutliner] Removing a duplicate addition, causing overestimates in IROutliner. 2021-01-03 23:36:28 -06:00
outlining-constants-vs-registers.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
outlining-cost-model.ll [IROutliner] Refactoring errors in the cost model from past patches. 2021-01-04 00:11:18 -06:00
outlining-debug-statements.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
outlining-different-constants.ll [IROutliner] Removing a duplicate addition, causing overestimates in IROutliner. 2021-01-03 23:36:28 -06:00
outlining-different-globals.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
outlining-different-output-blocks.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
outlining-different-structure.ll [IROutliner] Removing a duplicate addition, causing overestimates in IROutliner. 2021-01-03 23:36:28 -06:00
outlining-gep.ll [IRSim][IROutliner] Allowing GEP instructions to be outlined. 2020-12-31 16:54:17 -06:00
outlining-isomorphic-predicates.ll [IROutliner] Removing a duplicate addition, causing overestimates in IROutliner. 2021-01-03 23:36:28 -06:00
outlining-odr.ll [IROutliner] Adding option to enable outlining from linkonceodr functions 2020-12-30 12:08:04 -06:00
outlining-remapped-outputs.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
outlining-same-constants.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
outlining-same-globals.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
outlining-same-output-blocks.ll [IROutliner] Adding a cost model, and debug option to turn the model off. 2020-12-29 12:43:41 -06:00
outlining-swift-error.ll [IROutliner] Adding support for swift errors in the IROutliner 2020-12-30 01:17:27 -06:00