aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2015-05-07 15:47:15 +0000
committerHans Wennborg <hans@hanshq.net>2015-05-07 15:47:15 +0000
commit44faaa7aa472599bc4b7793817e006347aff6b14 (patch)
tree89b10d21a80eebe26adbd527cfff6a9a2a208216 /clang/lib/Frontend/CompilerInvocation.cpp
parent04d9e653ed4f40824a222d27c815a81b47c65e81 (diff)
downloadllvm-44faaa7aa472599bc4b7793817e006347aff6b14.zip
llvm-44faaa7aa472599bc4b7793817e006347aff6b14.tar.gz
llvm-44faaa7aa472599bc4b7793817e006347aff6b14.tar.bz2
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 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions