[all-commits] [llvm/llvm-project] cd6cd9: [BrachProbablityInfo] Proportional distribution of...

Yevgeny Rouban via All-commits all-commits at lists.llvm.org
Mon Jun 1 21:28:59 PDT 2020


  Branch: refs/heads/D80611-land2
  Home:   https://github.com/llvm/llvm-project
  Commit: cd6cd911352ce171253c922d7c21371068a336ce
      https://github.com/llvm/llvm-project/commit/cd6cd911352ce171253c922d7c21371068a336ce
  Author: Yevgeny Rouban <yrouban at azul.com>
  Date:   2020-06-02 (Tue, 02 Jun 2020)

  Changed paths:
    M llvm/lib/Analysis/BranchProbabilityInfo.cpp
    M llvm/test/Analysis/BranchProbabilityInfo/basic.ll

  Log Message:
  -----------
  [BrachProbablityInfo] Proportional distribution of reachable probabilities

When fixing probability of unreachable edges in
BranchProbabilityInfo::calcMetadataWeights() proportionally distribute
remainder probability over the reachable edges. The old implementation
distributes the remainder probability evenly.
See examples in the fixed tests.

Reviewers: yamauchi, ebrevnov
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D80611




More information about the All-commits mailing list