Set the branch probability of branching to the 'normal' destination of an invoke
authorBill Wendling <isanbard@gmail.com>
Wed, 15 Aug 2012 12:22:35 +0000 (12:22 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 15 Aug 2012 12:22:35 +0000 (12:22 +0000)
commit0c34ae88bfe6ab40fc30784f131510992438ea43
treeb917952446dc4d73bdb77e1f48808021aec121f6
parent95d235ddb62805923f2f64edd71b15b904ee4a16
Set the branch probability of branching to the 'normal' destination of an invoke
instruction to something absurdly high, while setting the probability of
branching to the 'unwind' destination to the bare minimum. This should set cause
the normal destination's invoke blocks to be moved closer to the invoke.

PR13612

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161944 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/BranchProbabilityInfo.h
lib/Analysis/BranchProbabilityInfo.cpp