summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/LowerSetJmp.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-28 23:14:59 +0000
committerChris Lattner <sabre@nondot.org>2003-10-28 23:14:59 +0000
commitfe2143d87d7153ddb15707e190d67a1475ea571d (patch)
treed6d8e4e9e235f8de533021f0cde9004e4a7b403f /lib/Transforms/IPO/LowerSetJmp.cpp
parent2c17a89349994d712570676a29f595ec527b0e73 (diff)
downloadllvm-fe2143d87d7153ddb15707e190d67a1475ea571d.tar.gz
llvm-fe2143d87d7153ddb15707e190d67a1475ea571d.tar.bz2
llvm-fe2143d87d7153ddb15707e190d67a1475ea571d.tar.xz
Check in statistifying patch for Bill
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9572 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/LowerSetJmp.cpp')
-rw-r--r--lib/Transforms/IPO/LowerSetJmp.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/LowerSetJmp.cpp b/lib/Transforms/IPO/LowerSetJmp.cpp
index 3109fb120d..01ff046f11 100644
--- a/lib/Transforms/IPO/LowerSetJmp.cpp
+++ b/lib/Transforms/IPO/LowerSetJmp.cpp
@@ -51,6 +51,10 @@ namespace {
"Number of longjmps transformed");
Statistic<> SetJmpsTransformed("lowersetjmp",
"Number of setjmps transformed");
+ Statistic<> CallsTransformed("lowersetjmp",
+ "Number of calls invokified");
+ Statistic<> InvokesTransformed("lowersetjmp",
+ "Number of invokes modified");
//===--------------------------------------------------------------------===//
// LowerSetJmp pass implementation. This is subclassed from the "Pass"
@@ -445,6 +449,7 @@ void LowerSetJmp::visitCallInst(CallInst& CI)
// The old terminator is useless now that we have the invoke inst.
Term->getParent()->getInstList().erase(Term);
+ ++CallsTransformed;
}
// visitInvokeInst - Converting the "invoke" instruction is fairly
@@ -479,6 +484,7 @@ void LowerSetJmp::visitInvokeInst(InvokeInst& II)
InstList.push_back(BR);
II.setExceptionalDest(NewExceptBB);
+ ++InvokesTransformed;
}
// visitReturnInst - We want to destroy the setjmp map upon exit from the