[all-commits] [llvm/llvm-project] 118c3f: [BranchProbabilityInfo] Simplify getEdgeProbabilit...
kazutakahirata via All-commits
all-commits at lists.llvm.org
Fri Nov 6 22:48:04 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 118c3f3cf268002d1356253bac3cf5300f054d43
https://github.com/llvm/llvm-project/commit/118c3f3cf268002d1356253bac3cf5300f054d43
Author: Kazu Hirata <kazu at google.com>
Date: 2020-11-06 (Fri, 06 Nov 2020)
Changed paths:
M llvm/lib/Analysis/BranchProbabilityInfo.cpp
Log Message:
-----------
[BranchProbabilityInfo] Simplify getEdgeProbability (NFC)
The patch simplifies BranchProbabilityInfo::getEdgeProbability by
handling two cases separately, depending on whether we have edge
probabilities.
- If we have edge probabilities, then add up probabilities for
successors being equal to Dst.
- Otherwise, return the number of ocurrences divided by the total
number of successors.
Differential Revision: https://reviews.llvm.org/D90980
More information about the All-commits
mailing list