aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-08-15 12:22:35 +0000
committerBill Wendling <isanbard@gmail.com>2012-08-15 12:22:35 +0000
commit0c34ae88bfe6ab40fc30784f131510992438ea43 (patch)
treeb917952446dc4d73bdb77e1f48808021aec121f6 /include
parent95d235ddb62805923f2f64edd71b15b904ee4a16 (diff)
downloadexternal_llvm-0c34ae88bfe6ab40fc30784f131510992438ea43.zip
external_llvm-0c34ae88bfe6ab40fc30784f131510992438ea43.tar.gz
external_llvm-0c34ae88bfe6ab40fc30784f131510992438ea43.tar.bz2
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/BranchProbabilityInfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Analysis/BranchProbabilityInfo.h b/include/llvm/Analysis/BranchProbabilityInfo.h
index 2ced796..006daa0 100644
--- a/include/llvm/Analysis/BranchProbabilityInfo.h
+++ b/include/llvm/Analysis/BranchProbabilityInfo.h
@@ -122,6 +122,7 @@ private:
bool calcLoopBranchHeuristics(BasicBlock *BB);
bool calcZeroHeuristics(BasicBlock *BB);
bool calcFloatingPointHeuristics(BasicBlock *BB);
+ bool calcInvokeHeuristics(BasicBlock *BB);
};
}