aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorYevgeny Rouban <yrouban@azul.com>2020-06-04 14:30:58 +0700
committerYevgeny Rouban <yrouban@azul.com>2020-06-04 15:10:55 +0700
commit417bcb8827671da271e5b745ad189e2ba978f776 (patch)
tree22aa053ea7720a8d670049048fc4796f887a44e1 /llvm/unittests/Support/VirtualFileSystemTest.cpp
parent2f671c42254dfbc67dfbeb3d4cc51909b1cef836 (diff)
downloadllvm-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