llvm-project/llvm/lib/Transforms/IPO
Ettore Tiotto 6b13cfe739 [ArgumentPromotion]: Copy function metadata after promoting arguments
The argument promotion pass currently fails to copy function annotations
over to the modified function after promoting arguments.
This patch copies the original function annotation to the new function.

Reviewed By: fhann

Differential Revision: https://reviews.llvm.org/D86630
2020-09-10 13:08:57 -04:00
..
AlwaysInliner.cpp Revert D85812 "[coroutine] should disable inline before calling coro split" 2020-08-24 11:41:05 -07:00
ArgumentPromotion.cpp [ArgumentPromotion]: Copy function metadata after promoting arguments 2020-09-10 13:08:57 -04:00
Attributor.cpp [Attributor] Cleanup `IRPosition::getArgNo` usages 2020-09-09 00:52:17 -05:00
AttributorAttributes.cpp [Attributor] Cleanup `::initialize` of various AAs 2020-09-09 01:38:25 -05:00
BarrierNoopPass.cpp
BlockExtractor.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
CMakeLists.txt Recommit "[IPConstProp] Remove and move tests to SCCP." 2020-08-02 22:23:54 +01:00
CalledValuePropagation.cpp [IR] Replace all uses of CallBase::getCalledValue() with getCalledOperand(). 2020-04-27 22:17:03 -07:00
ConstantMerge.cpp [Alignment][NFC] migrate DataLayout::getPreferredAlignment 2020-06-29 11:24:36 +00:00
CrossDSOCFI.cpp
DeadArgumentElimination.cpp IR: Rename Argument::hasPassPointeeByValueAttr to prepare for byref 2020-07-16 13:50:49 -04:00
ElimAvailExtern.cpp
ExtractGV.cpp [llvm-extract] Add -keep-const-init commandline option 2020-02-03 14:30:28 +09:00
ForceFunctionAttrs.cpp Force Remove Attribute 2020-08-19 17:30:13 -04:00
FunctionAttrs.cpp [FunctionAttrs] Bulk remove attributes. NFC. 2020-08-28 12:56:19 +02:00
FunctionImport.cpp [ThinLTO] Import globals recursively 2020-08-20 12:13:43 +03:00
GlobalDCE.cpp [WPD/VFE] Always emit vcall_visibility metadata for -fwhole-program-vtables 2020-01-23 11:36:01 -08:00
GlobalOpt.cpp [GlobalOpt] Fix an incorrect Modified status 2020-09-02 15:00:45 +02:00
GlobalSplit.cpp [WPD/VFE] Always emit vcall_visibility metadata for -fwhole-program-vtables 2020-01-23 11:36:01 -08:00
HotColdSplitting.cpp [HotColdSplit] Fix variable name spelling 2020-08-12 22:50:08 -07:00
IPO.cpp Recommit "[IPConstProp] Remove and move tests to SCCP." 2020-08-02 22:23:54 +01:00
InferFunctionAttrs.cpp
InlineSimple.cpp Revert "Revert "[llvm][NFC] Cleanup uses of std::function in Inlining-related APIs"" 2020-05-15 12:29:16 -07:00
Inliner.cpp [Inliner] Don't skip inlining alwaysinline in optnone functions 2020-07-07 12:54:55 -07:00
Internalize.cpp
LLVMBuild.txt [OpenMP] Introduce the OpenMPOpt transformation pass 2020-02-08 14:47:03 -06:00
LoopExtractor.cpp Fix pass return status for loop extractor 2020-06-26 15:49:27 +02:00
LowerTypeTests.cpp [Attributes] Add a method to check if an Attribute has AttrKind None. Use instead of hasAttribute(Attribute::None) 2020-08-28 13:23:45 -07:00
MergeFunctions.cpp [llvm][NFC][CallSite] Remove CallSite from a few trivial locations 2020-04-22 08:39:21 -07:00
OpenMPOpt.cpp [OpenMPOpt] Assume indirect call always changes ICV 2020-09-04 09:05:32 -07:00
PartialInlining.cpp Use llvm::is_contained where appropriate (NFC) 2020-07-27 10:20:44 -07:00
PassManagerBuilder.cpp Enable InsertFreeze flag of JumpThreading when used in LTO 2020-09-10 19:05:49 +09:00
PruneEH.cpp [IR] Replace all uses of CallBase::getCalledValue() with getCalledOperand(). 2020-04-27 22:17:03 -07:00
SCCP.cpp
SampleProfile.cpp [SampleFDO] Enhance profile remapping support for searching inline instance 2020-08-26 11:07:35 -07:00
StripDeadPrototypes.cpp
StripSymbols.cpp Remove CompositeType class. 2020-03-18 13:53:17 -07:00
SyntheticCountsPropagation.cpp [CallGraph] Add support for callback call sites 2020-07-01 13:44:11 -07:00
ThinLTOBitcodeWriter.cpp Revert "Move ModuleSummaryAnalysis from libAnalysis to libObject to break the dependency from Analysis to Object" 2020-04-14 00:27:08 +00:00
WholeProgramDevirt.cpp [Attributes] Add a method to check if an Attribute has AttrKind None. Use instead of hasAttribute(Attribute::None) 2020-08-28 13:23:45 -07:00