SuccessChanges

Summary

  1. Revert "[IROutliner] Deduplicating functions that only require inputs." (details)
  2. [IROutliner] Deduplicating functions that only require inputs. (details)
Commit b8a2b6af374e9dca3ad320fcffd8798c0170801f by andrew.litteken
Revert "[IROutliner] Deduplicating functions that only require inputs."

Missing reviewers and differential revision in commit message.

This reverts commit 5cdc4f57e50bbe0d211c109517c17defe78e0b73.
The file was modifiedllvm/test/Transforms/IROutliner/extraction.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-gep.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-catchpad.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-cleanup.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-landingpad.ll
The file was modifiedllvm/test/Transforms/IROutliner/outlining-address-taken.ll
The file was modifiedllvm/test/Transforms/IROutliner/outlining-same-globals.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-phi-nodes.ll
The file was modifiedllvm/lib/Transforms/IPO/IROutliner.cpp
The file was modifiedllvm/test/Transforms/IROutliner/outlining-different-structure.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-assumes.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-memset.ll
The file was modifiedllvm/include/llvm/Transforms/IPO/IROutliner.h
The file was modifiedllvm/test/Transforms/IROutliner/illegal-branches.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-invoke.ll
The file was modifiedllvm/test/Transforms/IROutliner/legal-debug.ll
The file was modifiedllvm/test/Transforms/IROutliner/outlining-different-constants.ll
The file was modifiedllvm/test/Transforms/IROutliner/outlining-same-constants.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-calls.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-callbr.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-frozen.ll
Commit 7c6f28a438b59dea11a7fc2562b3389874c58112 by andrew.litteken
[IROutliner] Deduplicating functions that only require inputs.

Extracted regions can have both inputs and outputs.  In addition, the
CodeExtractor removes inputs that are only used in llvm.assumes, and
sunken allocas (values are used entirely in the extracted region as
denoted by lifetime intrinsics).  We also cannot combine sections that
have different constants in the same structural location, and these
constants will have to elevated to argument. This patch deduplicates
extracted functions that only have inputs and non of the special cases.

We test that correctly deduplicate in:
test/Transforms/IROutliner/outlining-same-globals.ll
test/Transforms/IROutliner/outlining-same-constants.ll
test/Transforms/IROutliner/outlining-different-structure.ll

Reviewers: jroelofs, paquette

Differential Revision: https://reviews.llvm.org/D86978
The file was modifiedllvm/test/Transforms/IROutliner/illegal-invoke.ll
The file was modifiedllvm/test/Transforms/IROutliner/outlining-same-globals.ll
The file was modifiedllvm/test/Transforms/IROutliner/extraction.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-catchpad.ll
The file was modifiedllvm/test/Transforms/IROutliner/outlining-address-taken.ll
The file was modifiedllvm/test/Transforms/IROutliner/outlining-same-constants.ll
The file was modifiedllvm/include/llvm/Transforms/IPO/IROutliner.h
The file was modifiedllvm/test/Transforms/IROutliner/illegal-cleanup.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-branches.ll
The file was modifiedllvm/test/Transforms/IROutliner/outlining-different-structure.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-phi-nodes.ll
The file was modifiedllvm/test/Transforms/IROutliner/outlining-different-constants.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-assumes.ll
The file was modifiedllvm/test/Transforms/IROutliner/legal-debug.ll
The file was modifiedllvm/lib/Transforms/IPO/IROutliner.cpp
The file was modifiedllvm/test/Transforms/IROutliner/illegal-calls.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-gep.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-frozen.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-memset.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-landingpad.ll
The file was modifiedllvm/test/Transforms/IROutliner/illegal-callbr.ll