| commit | 67c03759e4f788d61c4475094295d42f7b8a2a15 | [log] [tgz] |
|---|---|---|
| author | Hans Wennborg <hans@hanshq.net> | Mon Apr 27 23:35:22 2015 +0000 |
| committer | Hans Wennborg <hans@hanshq.net> | Mon Apr 27 23:35:22 2015 +0000 |
| tree | ff18d945c442ab8620b63da68d3fdde4402b8b25 | |
| parent | 753e007091a7e70029750e68bcd5b82ab886830a [diff] |
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