diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-04 23:53:04 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-04 23:53:04 +0000 |
commit | 26eb870d7e0e28ecb25a0cd77e6cdc0490707eff (patch) | |
tree | 0dd1d445bc7a7dec6a342ea97f0e3df1aa60e70b /lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | fec0c6fa56d5ed91d5b6a1f286aa84b205e17a0f (diff) |
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
Diffstat (limited to 'lib/Transforms/Utils/SimplifyCFG.cpp')
0 files changed, 0 insertions, 0 deletions