summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LowerExpectIntrinsic
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-04-26 22:23:38 +0000
committerSanjay Patel <spatel@rotateright.com>2016-04-26 22:23:38 +0000
commitd2d2aa52cda3ea9d68bdd2052143ec67bdfd0c33 (patch)
tree93bccba6534ac234566e54dbc951f79ddfa8e512 /llvm/test/Transforms/LowerExpectIntrinsic
parent90744d215b4347ecb546ce55102a82da2d7470c2 (diff)
downloadbcm5719-llvm-d2d2aa52cda3ea9d68bdd2052143ec67bdfd0c33.tar.gz
bcm5719-llvm-d2d2aa52cda3ea9d68bdd2052143ec67bdfd0c33.zip
[LowerExpectIntrinsic] make default likely/unlikely ratio bigger
We need the default ratio to be sufficiently large that it triggers transforms based on block frequency info (BFI) and plays well with the recently introduced BranchProbability used by CGP. Differential Revision: http://reviews.llvm.org/D19435 llvm-svn: 267615
Diffstat (limited to 'llvm/test/Transforms/LowerExpectIntrinsic')
-rw-r--r--llvm/test/Transforms/LowerExpectIntrinsic/basic.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Transforms/LowerExpectIntrinsic/basic.ll b/llvm/test/Transforms/LowerExpectIntrinsic/basic.ll
index 69e67cd7c1d..562db86cefd 100644
--- a/llvm/test/Transforms/LowerExpectIntrinsic/basic.ll
+++ b/llvm/test/Transforms/LowerExpectIntrinsic/basic.ll
@@ -275,7 +275,7 @@ return: ; preds = %if.end, %if.then
declare i1 @llvm.expect.i1(i1, i1) nounwind readnone
-; CHECK: !0 = !{!"branch_weights", i32 64, i32 4}
-; CHECK: !1 = !{!"branch_weights", i32 4, i32 64}
-; CHECK: !2 = !{!"branch_weights", i32 4, i32 64, i32 4}
-; CHECK: !3 = !{!"branch_weights", i32 64, i32 4, i32 4}
+; CHECK: !0 = !{!"branch_weights", i32 2000, i32 1}
+; CHECK: !1 = !{!"branch_weights", i32 1, i32 2000}
+; CHECK: !2 = !{!"branch_weights", i32 1, i32 2000, i32 1}
+; CHECK: !3 = !{!"branch_weights", i32 2000, i32 1, i32 1}
OpenPOWER on IntegriCloud