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
Paths
| Differential D87309
[IRSim][IROutliner] Adding option to enable outlining from linkonceodr functions ClosedPublic Authored by AndrewLitteken on Sep 8 2020, 11:28 AM.
Details Summary 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:
Diff Detail
Event TimelineAndrewLitteken added a parent revision: D86978: [IROutliner] Deduplicating functions that only require inputs..
This revision is now accepted and ready to land.Sep 16 2020, 8:12 AM This revision was landed with ongoing or failed builds.Dec 30 2020, 10:20 AM Closed by commit rGfe431103b633: [IROutliner] Adding option to enable outlining from linkonceodr functions (authored by AndrewLitteken). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 314132 llvm/include/llvm/Transforms/IPO/IROutliner.h
llvm/lib/Transforms/IPO/IROutliner.cpp
llvm/test/Transforms/IROutliner/outlining-odr.ll
|
The comment seems to suggest that this ought to be set in the LTO pass pipeline, but that doesn't happen in this patch. Is this just for testing?