OSDN Git Service

[LowerExpectIntrinsic] make default likely/unlikely ratio bigger
authorSanjay Patel <spatel@rotateright.com>
Tue, 26 Apr 2016 22:23:38 +0000 (22:23 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 26 Apr 2016 22:23:38 +0000 (22:23 +0000)
commitd926422b164a8084646ea831d92429f0fab362d9
treefa041551aad447941a7991e87f4cf6d5f00db84a
parent7fd37fa92dc3c9c4e1d59e48980366566e292c37
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267615 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
test/Transforms/LowerExpectIntrinsic/basic.ll