summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-01-24 10:57:25 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-01-24 10:57:25 +0000
commit6eb60eb5c9c76ed62bb4dc58be8157c598c70944 (patch)
treef915d0f3abe7831e937d24c249d9b025184f2efd /llvm/lib/Transforms
parentd12741e0a963ca6bf6d81c7e1fece1a0e01e2763 (diff)
downloadbcm5719-llvm-6eb60eb5c9c76ed62bb4dc58be8157c598c70944.tar.gz
bcm5719-llvm-6eb60eb5c9c76ed62bb4dc58be8157c598c70944.zip
[PM] Use a more appropriate name for the statistics variable in
lower-expect, as we don't have 'if's in the IR and we use it for switches as well. llvm-svn: 226997
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp b/llvm/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
index fa82d62b32f..5d3bbbc6047 100644
--- a/llvm/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
+++ b/llvm/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
@@ -30,7 +30,8 @@ using namespace llvm;
#define DEBUG_TYPE "lower-expect-intrinsic"
-STATISTIC(IfHandled, "Number of 'expect' intrinsic instructions handled");
+STATISTIC(ExpectIntrinsicsHandled,
+ "Number of 'expect' intrinsic instructions handled");
static cl::opt<uint32_t>
LikelyBranchWeight("likely-branch-weight", cl::Hidden, cl::init(64),
@@ -147,10 +148,10 @@ bool LowerExpectIntrinsic::runOnFunction(Function &F) {
// Create "block_weights" metadata.
if (BranchInst *BI = dyn_cast<BranchInst>(BB.getTerminator())) {
if (handleBranchExpect(*BI))
- IfHandled++;
+ ExpectIntrinsicsHandled++;
} else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB.getTerminator())) {
if (handleSwitchExpect(*SI))
- IfHandled++;
+ ExpectIntrinsicsHandled++;
}
// remove llvm.expect intrinsics.
OpenPOWER on IntegriCloud