commit | 573c3541f3a4fd8fe0a32026f5b0f320cf9b97c6 | [log] [tgz] |
---|---|---|
author | Rong Xu <xur@google.com> | Thu Nov 16 00:14:05 2017 +0000 |
committer | Rong Xu <xur@google.com> | Thu Nov 16 00:14:05 2017 +0000 |
tree | dab42ed48be51aa966cd64e6c8a0164e73bd3423 | |
parent | 355825a81ef3e0a8d77826a689fc1111fe6a52ee [diff] |
[CodeGen] Fix the branch probability assertion in r318202 Due to integer precision, we might have numerator greater than denominator in the branch probability scaling. Add a check to prevent this from happening. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318353 91177308-0d34-0410-b5e6-96231b3b80d8