summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
diff options
context:
space:
mode:
authorRong Xu <xur@google.com>2017-11-16 00:14:05 +0000
committerRong Xu <xur@google.com>2017-11-16 00:14:05 +0000
commite4572c6b733243962103b8d18ea2c3872cbef91a (patch)
treede0d6dae859c26f7a948197359a3a7d62ae27c45 /llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
parent725584e26d79d00ad4b14cab15babc4b4499d22e (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud