commit | 26eb870d7e0e28ecb25a0cd77e6cdc0490707eff | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Sun Sep 04 23:53:04 2011 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Sun Sep 04 23:53:04 2011 +0000 |
tree | 0dd1d445bc7a7dec6a342ea97f0e3df1aa60e70b | |
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