Use canonical forms for the branch probability zero heutistic.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 4 Sep 2011 23:53:04 +0000 (23:53 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 4 Sep 2011 23:53:04 +0000 (23:53 +0000)
commit26eb870d7e0e28ecb25a0cd77e6cdc0490707eff
tree0dd1d445bc7a7dec6a342ea97f0e3df1aa60e70b
parentfec0c6fa56d5ed91d5b6a1f286aa84b205e17a0f
Use canonical forms for the branch probability zero heutistic.

- Drop support for X >u 0, it's equivalent to X != 0 and should be canonicalized into the latter.
- Add X < 1 -> unlikely, which is what instcombine canonicalizes X <= 0 into.
- Add X > -1 -> likely, which is what instcombine canonicalizes X >= 0 into.

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