commit | 663903f2e867d6e390e9ca9e29a1a280117bf1e7 | [log] [tgz] |
---|---|---|
author | Kyle Butt <kyle+llvm@iteratee.net> | Mon Apr 10 22:28:22 2017 +0000 |
committer | Kyle Butt <kyle+llvm@iteratee.net> | Mon Apr 10 22:28:22 2017 +0000 |
tree | 90152114c96f78c0acfb532551761b48f78e90f9 | |
parent | 132e8441ed92038e67045d21201eb3d029d60b05 [diff] |
CodeGen: BlockPlacement: Don't always tail-duplicate with no other successor. The math works out where it can actually be counter-productive. The probability calculations correctly handle the case where the alternative is 0 probability, rely on those calculations. Includes a test case that demonstrates the problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299892 91177308-0d34-0410-b5e6-96231b3b80d8