[IROutliner] Adding option to enable outlining from linkonceodr functions
authorAndrew Litteken <andrew.litteken@gmail.com>
Wed, 16 Sep 2020 03:02:18 +0000 (22:02 -0500)
committerAndrew Litteken <andrew.litteken@gmail.com>
Wed, 30 Dec 2020 18:08:04 +0000 (12:08 -0600)
commitfe431103b633278da9ece1e03d6b441c1d44d977
treebc67696438023bec0e05167cdde594413a649411
parent9c0c123b0b48772973f8864e36e451ab0c8c7419
[IROutliner] Adding option to enable outlining from linkonceodr functions

There are functions that the linker is able to automatically
deduplicate, we do not outline from these functions by default. This
allows for outlining from those functions.

Tests:
llvm/test/Transforms/IROutliner/outlining-odr.ll

Reviewers: jroelofs, paquette

Differential Revision: https://reviews.llvm.org/D87309
llvm/include/llvm/Transforms/IPO/IROutliner.h
llvm/lib/Transforms/IPO/IROutliner.cpp
llvm/test/Transforms/IROutliner/outlining-odr.ll [new file with mode: 0644]