diff options
| author | Cong Hou <congh@google.com> | 2015-11-18 01:20:37 +0000 |
|---|---|---|
| committer | Cong Hou <congh@google.com> | 2015-11-18 01:20:37 +0000 |
| commit | e8c455d90e5514ba112703a6c4e822c5aeae0274 (patch) | |
| tree | 5a6d1efffcc9abe20ebfc27fe116236630f7dfa6 /lldb/packages/Python/lldbsuite/test/functionalities/load_unload/d.c | |
| parent | 2a40fb78c0ae8ba9a46cd63fad2ed50c6f5ec31e (diff) | |
| download | bcm5719-llvm-e8c455d90e5514ba112703a6c4e822c5aeae0274.tar.gz bcm5719-llvm-e8c455d90e5514ba112703a6c4e822c5aeae0274.zip | |
Let += and -= operators in BranchProbability have saturation behaviors.
This commit is for a later patch that is depend on it. The sum of two
branch probabilities can be greater than 1 due to rounding. It is safer
to saturate the results of sum and subtraction.
llvm-svn: 253421
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/load_unload/d.c')
0 files changed, 0 insertions, 0 deletions

