1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/lib/Transforms/IPO
Fangrui Song b3b970744d [ThinLTO] Add Visibility bits to GlobalValueSummary::GVFlags
Imported functions and variable get the visibility from the module supplying the
definition.  However, non-imported definitions do not get the visibility from
(ELF) the most constraining visibility among all modules (Mach-O) the visibility
of the prevailing definition.

This patch

* adds visibility bits to GlobalValueSummary::GVFlags
* computes the result visibility and propagates it to all definitions

Protected/hidden can imply dso_local which can enable some optimizations (this
is stronger than GVFlags::DSOLocal because the implied dso_local can be
leveraged for ELF -shared while default visibility dso_local has to be cleared
for ELF -shared).

Note: we don't have summaries for declarations, so for ELF if a declaration has
the most constraining visibility, the result visibility may not be that one.

Differential Revision: https://reviews.llvm.org/D92900
2021-01-27 10:43:51 -08:00
..
AlwaysInliner.cpp [coroutine] should disable inline before calling coro split 2020-12-08 08:53:08 -08:00
Annotation2Metadata.cpp Add pass to add !annotate metadata from @llvm.global.annotations. 2020-11-16 14:57:11 +00:00
ArgumentPromotion.cpp [llvm] Use pop_back_val (NFC) 2021-01-23 10:56:33 -08:00
Attributor.cpp [llvm] Remove redundant string initialization (NFC) 2021-01-12 21:43:46 -08:00
AttributorAttributes.cpp [llvm] Remove redundant return and continue statements (NFC) 2021-01-14 20:30:34 -08:00
BarrierNoopPass.cpp
BlockExtractor.cpp
CalledValuePropagation.cpp
CMakeLists.txt [IRSim][IROutliner] Adding the extraction basics for the IROutliner. 2020-12-17 11:27:26 -06:00
ConstantMerge.cpp
CrossDSOCFI.cpp
DeadArgumentElimination.cpp Revert "[ObjC][ARC] Annotate calls with attributes instead of emitting retainRV" 2021-01-25 13:53:38 -08:00
ElimAvailExtern.cpp
ExtractGV.cpp
ForceFunctionAttrs.cpp Revert "[IR] add fn attr for no_stack_protector; prevent inlining on mismatch" 2020-11-17 17:27:14 -08:00
FunctionAttrs.cpp [FunctionAttrs] Infer willreturn for functions without loops 2021-01-21 20:29:33 +01:00
FunctionImport.cpp [ThinLTO] Add Visibility bits to GlobalValueSummary::GVFlags 2021-01-27 10:43:51 -08:00
GlobalDCE.cpp
GlobalOpt.cpp [Transforms] Use llvm::append_range (NFC) 2021-01-20 21:35:54 -08:00
GlobalSplit.cpp
HotColdSplitting.cpp [HotColdSplit] Reflect full cost of parameters in split penalty 2020-12-18 17:06:17 -08:00
InferFunctionAttrs.cpp
Inliner.cpp [InlineAdvisor] Allow replay of inline decisions for the CGSCC inliner from optimization remarks 2021-01-25 15:38:57 -08:00
InlineSimple.cpp
Internalize.cpp
IPO.cpp [IRSim][IROutliner] Adding the extraction basics for the IROutliner. 2020-12-17 11:27:26 -06:00
IROutliner.cpp [NFC][InstructionCost] Use InstructionCost in lib/Transforms/IPO/IROutliner.cpp 2021-01-20 08:33:59 +00:00
LoopExtractor.cpp
LowerTypeTests.cpp [Transforms] Use llvm::append_range (NFC) 2020-12-27 09:57:29 -08:00
MergeFunctions.cpp Migrate deprecated DebugLoc::get to DILocation::get 2020-12-11 12:45:22 -08:00
OpenMPOpt.cpp [llvm] Use the default value of drop_begin (NFC) 2021-01-18 10:16:36 -08:00
PartialInlining.cpp
PassManagerBuilder.cpp [NewPM] Add ExtraVectorizerPasses support 2021-01-26 22:59:10 +01:00
PruneEH.cpp
SampleContextTracker.cpp [IPO] Fix operator precedence warning. NFCI. 2020-12-07 18:23:54 +00:00
SampleProfile.cpp [InlineAdvisor] Allow replay of inline decisions for the CGSCC inliner from optimization remarks 2021-01-25 15:38:57 -08:00
SampleProfileProbe.cpp [CSSPGO] Consume pseudo-probe-based AutoFDO profile 2020-12-16 15:57:18 -08:00
SCCP.cpp
StripDeadPrototypes.cpp
StripSymbols.cpp
SyntheticCountsPropagation.cpp
ThinLTOBitcodeWriter.cpp [Transforms] Use llvm::append_range (NFC) 2021-01-20 21:35:54 -08:00
WholeProgramDevirt.cpp [Transforms] Use llvm::append_range (NFC) 2021-01-20 21:35:54 -08:00