diff options
author | Yevgeny Rouban <yrouban@azul.com> | 2020-06-04 14:30:58 +0700 |
---|---|---|
committer | Yevgeny Rouban <yrouban@azul.com> | 2020-06-04 15:10:55 +0700 |
commit | 417bcb8827671da271e5b745ad189e2ba978f776 (patch) | |
tree | 22aa053ea7720a8d670049048fc4796f887a44e1 /llvm/unittests/Support/VirtualFileSystemTest.cpp | |
parent | 2f671c42254dfbc67dfbeb3d4cc51909b1cef836 (diff) | |
download | llvm-417bcb8827671da271e5b745ad189e2ba978f776.zip llvm-417bcb8827671da271e5b745ad189e2ba978f776.tar.gz llvm-417bcb8827671da271e5b745ad189e2ba978f776.tar.bz2 |
[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
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions