diff options
| author | Hans Wennborg <hans@hanshq.net> | 2015-05-07 15:47:15 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2015-05-07 15:47:15 +0000 |
| commit | 44faaa7aa472599bc4b7793817e006347aff6b14 (patch) | |
| tree | 89b10d21a80eebe26adbd527cfff6a9a2a208216 /llvm/lib/Support/Unix | |
| parent | 04d9e653ed4f40824a222d27c815a81b47c65e81 (diff) | |
| download | bcm5719-llvm-44faaa7aa472599bc4b7793817e006347aff6b14.tar.gz bcm5719-llvm-44faaa7aa472599bc4b7793817e006347aff6b14.zip | |
Switch lowering: handle zero-weight branch probabilities
After r236617, branch probabilities are no longer guaranteed to be >= 1. This
patch makes the swich lowering code handle that correctly, without bumping the
branch weights by 1 which might cause overflow and skews the probabilities.
Covered by @zero_weight_tree in test/CodeGen/X86/switch.ll.
llvm-svn: 236739
Diffstat (limited to 'llvm/lib/Support/Unix')
0 files changed, 0 insertions, 0 deletions

