aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorYevgeny Rouban <yrouban@azul.com>2020-11-06 14:46:34 +0700
committerYevgeny Rouban <yrouban@azul.com>2020-11-06 14:52:35 +0700
commit681d6c711f2743b69eaed5b3708e7c4bf86489c2 (patch)
tree0196a37ecc3b4ade19566bc765f4103532832531 /clang/lib/CodeGen/CodeGenFunction.cpp
parent1776581be44a2efe232f7b1a03a564844d1728fd (diff)
downloadllvm-681d6c711f2743b69eaed5b3708e7c4bf86489c2.zip
llvm-681d6c711f2743b69eaed5b3708e7c4bf86489c2.tar.gz
llvm-681d6c711f2743b69eaed5b3708e7c4bf86489c2.tar.bz2
[BranchProbabilityInfo] Introduce method copyEdgeProbabilities(). NFC
A new method is introduced to allow bulk copy of outgoing edge probabilities from one block to another. This can be useful when a block is cloned from another one and we do not know if there are edge probabilities set for the original block or not. Copying outside of the BranchProbabilityInfo class makes the user unconditionally set the cloned block's edge probabilities even if they are unset for the original block. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D90839
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions