aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorAndrew Litteken <andrew.litteken@gmail.com>2020-09-15 18:05:38 -0500
committerAndrew Litteken <andrew.litteken@gmail.com>2020-12-17 11:27:26 -0600
commitdae34463e3e05a055899b65251efde887a24ec38 (patch)
treed6a115047b75a54b7ef84a7a98f3a4b527eb1f32 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentc1f30e581793f8db889b6fad0c3860f163f4afa2 (diff)
downloadllvm-dae34463e3e05a055899b65251efde887a24ec38.zip
llvm-dae34463e3e05a055899b65251efde887a24ec38.tar.gz
llvm-dae34463e3e05a055899b65251efde887a24ec38.tar.bz2
[IRSim][IROutliner] Adding the extraction basics for the IROutliner.
Extracting the similar regions is the first step in the IROutliner. Using the IRSimilarityIdentifier, we collect the SimilarityGroups and sort them by how many instructions will be removed. Each IRSimilarityCandidate is used to define an OutlinableRegion. Each region is ordered by their occurrence in the Module and the regions that are not compatible with previously outlined regions are discarded. Each region is then extracted with the CodeExtractor into its own function. We test that correctly extract in: test/Transforms/IROutliner/extraction.ll test/Transforms/IROutliner/address-taken.ll test/Transforms/IROutliner/outlining-same-globals.ll test/Transforms/IROutliner/outlining-same-constants.ll test/Transforms/IROutliner/outlining-different-structure.ll Recommit of bf899e891387d07dfd12de195ce2a16f62afd5e0 fixing memory leaks. Reviewers: paquette, jroelofs, yroux Differential Revision: https://reviews.llvm.org/D86975
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions