Add Zero Heurestics to BranchProbabilityInfo. If we compare value to zero we
authorJakub Staszak <jstaszak@apple.com>
Sun, 31 Jul 2011 03:27:24 +0000 (03:27 +0000)
committerJakub Staszak <jstaszak@apple.com>
Sun, 31 Jul 2011 03:27:24 +0000 (03:27 +0000)
commita5dd5505883aa90d01d442e3a5db5aedc2277f9e
treeee5620a8483049f77389804417f6167442beda6e
parente2721f75503d9195d02b8d2dc4d196b9256873e9
Add Zero Heurestics to BranchProbabilityInfo. If we compare value to zero we
decide whether condition is likely to be true this way:

x == 0  ->  false
x <  0  ->  false
x <= 0  ->  false
x != 0  ->  true
x >  0  ->  true
x >= 0  ->  true

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