[llvm-commits] [llvm] r133776 - in /llvm/trunk: include/llvm/Analysis/BlockFrequencyImpl.h include/llvm/Analysis/BranchProbabilityInfo.h lib/Analysis/BranchProbabilityInfo.cpp

Jakub Staszak jstaszak at apple.com
Fri Jun 24 08:29:27 PDT 2011


On Jun 23, 2011, at 10:24 PM, Andrew Trick wrote:

> This is now identical to the original implementation whenever the frequency of the current loop header is START_FREQ (which it is always supposed to be). i.e. you have
> Res = (N * START_FREQ) / D = (EdgeFreq(src, dst) * START_FREQ) / START_FREQ.

The original implementation used only branch probability. Now we also use block frequency to calculate backedge probability.

-Kuba



More information about the llvm-commits mailing list