[PATCH] D10979: Update the branch weight metadata in JumpThreading pass.

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 23:09:07 PDT 2015


As discussed, there is another more complicated jump-threading related
profile updating bug (also involving loop rotation). Do you plan to
address that in a different patch?

David

On Wed, Aug 5, 2015 at 3:54 PM, Cong Hou <congh at google.com> wrote:
> congh updated this revision to Diff 31408.
> congh added a comment.
>
> Update the patch by normalizing a list of weights of uint64_t type using MachineBranchProbabilityInfo::normalizeEdgeWeights().
>
> Please take a look.
>
>
> http://reviews.llvm.org/D10979
>
> Files:
>   include/llvm/Analysis/BlockFrequencyInfo.h
>   include/llvm/Analysis/BlockFrequencyInfoImpl.h
>   include/llvm/Analysis/BranchProbabilityInfo.h
>   lib/Analysis/BlockFrequencyInfo.cpp
>   lib/Analysis/BlockFrequencyInfoImpl.cpp
>   lib/Analysis/BranchProbabilityInfo.cpp
>   lib/Transforms/Scalar/JumpThreading.cpp
>   test/Transforms/JumpThreading/update-edge-weight.ll
>


More information about the llvm-commits mailing list