commit | 13b10731abfc006fce790c5c8205cd24c7d67de8 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Mon Oct 24 13:50:56 2011 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Mon Oct 24 13:50:56 2011 +0000 |
tree | eb1a73b00a86c6246051239c5e58c7cb28c6b5ac | |
parent | de1c9bb45017e25b5fc2b77e15d3c377f6572075 [diff] |
Implement comparison operators for BranchProbability in a way that can't overflow INT64_MAX. Add a test case for the edge case that triggers this. Thanks to Chandler for bringing this to my attention. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142794 91177308-0d34-0410-b5e6-96231b3b80d8