1. [gn build] Port bf899e89138 (details)
  2. Revert "[IRSim][IROutliner] Adding the extraction basics for the IROutliner." (details)
Commit cbc8c1eb48c5ec552989d0c2ef93827e2e5fa445 by llvmgnsyncbot
[gn build] Port bf899e89138
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Transforms/IPO/
Commit a8a43b63388f4d348eaa1f1017d6ab3be89b4945 by andrew.litteken
Revert "[IRSim][IROutliner] Adding the extraction basics for the IROutliner."

Reverting commit due to address sanitizer errors.

> 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
> Reviewers: paquette, jroelofs, yroux
> Differential Revision:

This reverts commit bf899e891387d07dfd12de195ce2a16f62afd5e0.
The file was modifiedllvm/lib/Passes/PassBuilder.cpp
The file was modifiedllvm/lib/Transforms/IPO/IPO.cpp
The file was removedllvm/test/Transforms/IROutliner/outlining-same-globals.ll
The file was removedllvm/test/Transforms/IROutliner/outlining-same-constants.ll
The file was removedllvm/test/Transforms/IROutliner/outlining-address-taken.ll
The file was removedllvm/include/llvm/Transforms/IPO/IROutliner.h
The file was modifiedllvm/include/llvm/InitializePasses.h
The file was modifiedllvm/include/llvm/Transforms/IPO.h
The file was modifiedllvm/lib/Transforms/IPO/CMakeLists.txt
The file was removedllvm/test/Transforms/IROutliner/outlining-different-structure.ll
The file was removedllvm/test/Transforms/IROutliner/extraction.ll
The file was modifiedllvm/lib/Passes/PassRegistry.def
The file was removedllvm/lib/Transforms/IPO/IROutliner.cpp
The file was modifiedllvm/lib/Transforms/IPO/PassManagerBuilder.cpp