[llvm-commits] CVS: llvm/lib/Transforms/IPO/LowerSetJmp.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Oct 28 17:16:02 PST 2003


Changes in directory llvm/lib/Transforms/IPO:

LowerSetJmp.cpp updated: 1.9 -> 1.10

---
Log message:

Check in statistifying patch for Bill


---
Diffs of the changes:  (+6 -0)

Index: llvm/lib/Transforms/IPO/LowerSetJmp.cpp
diff -u llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.9 llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.10
--- llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.9	Mon Oct 20 14:43:19 2003
+++ llvm/lib/Transforms/IPO/LowerSetJmp.cpp	Tue Oct 28 17:14:59 2003
@@ -51,6 +51,10 @@
                                   "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 @@
 
   // 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 @@
   InstList.push_back(BR);
 
   II.setExceptionalDest(NewExceptBB);
+  ++InvokesTransformed;
 }
 
 // visitReturnInst - We want to destroy the setjmp map upon exit from the





More information about the llvm-commits mailing list