llvm-project/llvm/lib/Transforms/IPO
Yevgeny Rouban 417bcb8827 [Instruction] Remove setProfWeight()
Remove the function Instruction::setProfWeight() and make
use of Instruction::copyMetadata(.., {LLVMContext::MD_prof}).
This is correct for all use cases of setProfWeight() as it
is applied to CallBase instructions only.
This change results in prof metadata copied intact even if
the source has "VP". The old pair of calls
extractProfTotalWeight() + setProfWeight() resulted in
setting branch_weights if the source had "VP" data.

Reviewers: yamauchi, davidxl
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D80987
2020-06-04 15:10:55 +07:00
..
AlwaysInliner.cpp Revert "Revert "[llvm][NFC] Cleanup uses of std::function in Inlining-related APIs"" 2020-05-15 12:29:16 -07:00
ArgumentPromotion.cpp [Instruction] Remove setProfWeight() 2020-06-04 15:10:55 +07:00
Attributor.cpp [Instruction] Remove setProfWeight() 2020-06-04 15:10:55 +07:00
AttributorAttributes.cpp [Transforms] Fix typos. NFC 2020-05-25 22:34:08 +02:00
BarrierNoopPass.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
BlockExtractor.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
CMakeLists.txt [Attributor][NFC] Split AbstractAttributes out of Attributor.cpp 2020-04-08 19:02:14 -05:00
CalledValuePropagation.cpp [IR] Replace all uses of CallBase::getCalledValue() with getCalledOperand(). 2020-04-27 22:17:03 -07:00
ConstantMerge.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
CrossDSOCFI.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
DeadArgumentElimination.cpp [Instruction] Remove setProfWeight() 2020-06-04 15:10:55 +07:00
ElimAvailExtern.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
ExtractGV.cpp [llvm-extract] Add -keep-const-init commandline option 2020-02-03 14:30:28 +09:00
ForceFunctionAttrs.cpp Add missing includes needed to prune LLVMContext.h include, NFC 2019-11-14 15:23:15 -08:00
FunctionAttrs.cpp Reland [X86] Codegen for preallocated 2020-05-20 11:25:44 -07:00
FunctionImport.cpp [PGO] Improve the working set size heuristics under the partial sample PGO. 2020-06-01 10:29:23 -07:00
GlobalDCE.cpp [WPD/VFE] Always emit vcall_visibility metadata for -fwhole-program-vtables 2020-01-23 11:36:01 -08:00
GlobalOpt.cpp Reland [X86] Codegen for preallocated 2020-05-20 11:25:44 -07:00
GlobalSplit.cpp [WPD/VFE] Always emit vcall_visibility metadata for -fwhole-program-vtables 2020-01-23 11:36:01 -08:00
HotColdSplitting.cpp [llvm][NFC][CallSite] Remove Implementation uses of CallSite 2020-04-14 14:49:47 -07:00
IPConstantPropagation.cpp Remove unnecessary check for inalloca in IPConstantPropagation 2020-05-05 08:26:11 -07:00
IPO.cpp [Attributor] Add an Attributor CGSCC pass and run it 2020-02-08 21:27:34 -06:00
InferFunctionAttrs.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
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 [llvm][NFC] Cache FAM in InlineAdvisor 2020-06-01 13:02:34 -07:00
Internalize.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
LLVMBuild.txt [OpenMP] Introduce the OpenMPOpt transformation pass 2020-02-08 14:47:03 -06:00
LoopExtractor.cpp [LoopExtractor] Fix legacy pass dependencies 2020-02-12 22:39:21 +02:00
LowerTypeTests.cpp [llvm][NFC][CallSite] Remove CallSite from a few trivial locations 2020-04-22 08:39:21 -07:00
MergeFunctions.cpp [llvm][NFC][CallSite] Remove CallSite from a few trivial locations 2020-04-22 08:39:21 -07:00
OpenMPOpt.cpp [Transforms] Fix typos. NFC 2020-05-25 22:34:08 +02:00
PartialInlining.cpp Revert "Revert "[llvm][NFC] Cleanup uses of std::function in Inlining-related APIs"" 2020-05-15 12:29:16 -07:00
PassManagerBuilder.cpp [Pass Manager] remove EarlyCSE as clean-up for VectorCombine 2020-05-24 12:36:21 -04:00
PruneEH.cpp [IR] Replace all uses of CallBase::getCalledValue() with getCalledOperand(). 2020-04-27 22:17:03 -07:00
SCCP.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
SampleProfile.cpp [SampleFDO] Add use-sample-profile function attribute. 2020-06-02 17:23:17 -07:00
StripDeadPrototypes.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
StripSymbols.cpp Remove CompositeType class. 2020-03-18 13:53:17 -07:00
SyntheticCountsPropagation.cpp [llvm][NFC][CallSite] Remove CallSite from a few trivial locations 2020-04-22 08:39:21 -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 [IR] Replace all uses of CallBase::getCalledValue() with getCalledOperand(). 2020-04-27 22:17:03 -07:00