[LowerGuards] Rename variable; NFC

PredicatePassProbability is a better name for what LikelyBranchWeight
was trying to express.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269999 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sanjoy Das 2016-05-18 23:16:27 +00:00
parent 0266d5e92a
commit 9dbb32236a

View File

@ -28,8 +28,8 @@
using namespace llvm;
static cl::opt<uint32_t> LikelyBranchWeight(
"guards-likely-branch-weight", cl::Hidden, cl::init(1 << 20),
static cl::opt<uint32_t> PredicatePassBranchWeight(
"guards-predicate-pass-branch-weight", cl::Hidden, cl::init(1 << 20),
cl::desc("The probability of a guard failing is assumed to be the "
"reciprocal of this value (default = 1 << 20)"));
@ -67,7 +67,7 @@ static void MakeGuardControlFlowExplicit(Function *DeoptIntrinsic,
MDBuilder MDB(CI->getContext());
CheckBI->setMetadata(LLVMContext::MD_prof,
MDB.createBranchWeights(LikelyBranchWeight, 1));
MDB.createBranchWeights(PredicatePassBranchWeight, 1));
IRBuilder<> B(DeoptBlockTerm);
auto *DeoptCall = B.CreateCall(DeoptIntrinsic, Args, {DeoptOB}, "");