[all-commits] [llvm/llvm-project] 681d6c: [BranchProbabilityInfo] Introduce method copyEdgeP...
Yevgeny Rouban via All-commits
all-commits at lists.llvm.org
Thu Nov 5 23:53:27 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 681d6c711f2743b69eaed5b3708e7c4bf86489c2
https://github.com/llvm/llvm-project/commit/681d6c711f2743b69eaed5b3708e7c4bf86489c2
Author: Yevgeny Rouban <yrouban at azul.com>
Date: 2020-11-06 (Fri, 06 Nov 2020)
Changed paths:
M llvm/include/llvm/Analysis/BranchProbabilityInfo.h
M llvm/lib/Analysis/BranchProbabilityInfo.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list