[llvm] r269999 - [LowerGuards] Rename variable; NFC
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Wed May 18 16:17:06 PDT 2016
Author: sanjoy
Date: Wed May 18 18:16:27 2016
New Revision: 269999
URL: http://llvm.org/viewvc/llvm-project?rev=269999&view=rev
Log:
[LowerGuards] Rename variable; NFC
PredicatePassProbability is a better name for what LikelyBranchWeight
was trying to express.
Modified:
llvm/trunk/lib/Transforms/Scalar/LowerGuardIntrinsic.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LowerGuardIntrinsic.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LowerGuardIntrinsic.cpp?rev=269999&r1=269998&r2=269999&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LowerGuardIntrinsic.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LowerGuardIntrinsic.cpp Wed May 18 18:16:27 2016
@@ -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
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}, "");
More information about the llvm-commits
mailing list