diff options
author | Rong Xu <xur@google.com> | 2017-11-16 00:14:05 +0000 |
---|---|---|
committer | Rong Xu <xur@google.com> | 2017-11-16 00:14:05 +0000 |
commit | e4572c6b733243962103b8d18ea2c3872cbef91a (patch) | |
tree | de0d6dae859c26f7a948197359a3a7d62ae27c45 /llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp | |
parent | 725584e26d79d00ad4b14cab15babc4b4499d22e (diff) | |
download | bcm5719-llvm-e4572c6b733243962103b8d18ea2c3872cbef91a.tar.gz bcm5719-llvm-e4572c6b733243962103b8d18ea2c3872cbef91a.zip |
[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.
llvm-svn: 318353
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp')
0 files changed, 0 insertions, 0 deletions