diff options
| author | Kyle Butt <kyle+llvm@iteratee.net> | 2017-01-31 23:48:32 +0000 |
|---|---|---|
| committer | Kyle Butt <kyle+llvm@iteratee.net> | 2017-01-31 23:48:32 +0000 |
| commit | b15c06677c63b4420c7673eb9d5cd37073244780 (patch) | |
| tree | ef004ad1c4a9e3d96c13d1f191f924dfc6c520b2 /llvm/test/CodeGen/PowerPC/misched-inorder-latency.ll | |
| parent | a86be2223013a810ac8653ffa3214efa84245c74 (diff) | |
| download | bcm5719-llvm-b15c06677c63b4420c7673eb9d5cd37073244780.tar.gz bcm5719-llvm-b15c06677c63b4420c7673eb9d5cd37073244780.zip | |
CodeGen: Allow small copyable blocks to "break" the CFG.
When choosing the best successor for a block, ordinarily we would have preferred
a block that preserves the CFG unless there is a strong probability the other
direction. For small blocks that can be duplicated we now skip that requirement
as well, subject to some simple frequency calculations.
Differential Revision: https://reviews.llvm.org/D28583
llvm-svn: 293716
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/misched-inorder-latency.ll')
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/misched-inorder-latency.ll | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/PowerPC/misched-inorder-latency.ll b/llvm/test/CodeGen/PowerPC/misched-inorder-latency.ll index ded3111da97..26663d81f35 100644 --- a/llvm/test/CodeGen/PowerPC/misched-inorder-latency.ll +++ b/llvm/test/CodeGen/PowerPC/misched-inorder-latency.ll @@ -17,7 +17,7 @@ entry: %sum1 = add i32 %sumin, 1 %val1 = load i32, i32* %ptr %p = icmp eq i32 %sumin, 0 - br i1 %p, label %true, label %end + br i1 %p, label %true, label %end, !prof !1 true: %sum2 = add i32 %sum1, 1 %ptr2 = getelementptr i32, i32* %ptr, i32 1 @@ -53,3 +53,5 @@ end: ret i32 %valmerge } declare void @llvm.prefetch(i8*, i32, i32, i32) nounwind + +!1 = !{!"branch_weights", i32 2, i32 1} |

