aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2015-04-27 23:35:22 +0000
committerHans Wennborg <hans@hanshq.net>2015-04-27 23:35:22 +0000
commit67c03759e4f788d61c4475094295d42f7b8a2a15 (patch)
treeff18d945c442ab8620b63da68d3fdde4402b8b25 /clang/lib/CodeGen/CodeGenModule.cpp
parent753e007091a7e70029750e68bcd5b82ab886830a (diff)
downloadllvm-67c03759e4f788d61c4475094295d42f7b8a2a15.zip
llvm-67c03759e4f788d61c4475094295d42f7b8a2a15.tar.gz
llvm-67c03759e4f788d61c4475094295d42f7b8a2a15.tar.bz2
Switch lowering: Take branch weight into account when ordering for fall-through
Previously, the code would try to put a fall-through case last, even if that meant moving a case with much higher branch weight further down the chain. Ordering by branch weight is most important, putting a fall-through block last is secondary. llvm-svn: 235942
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions