[PATCH] D59285: [ResetMachineFunctionPass] Add visited functions statistics info

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 13 18:12:21 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL356114: [ResetMachineFunctionPass] Add visited functions statistics info (authored by ctopper, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D59285?vs=190373&id=190550#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59285/new/

https://reviews.llvm.org/D59285

Files:
  llvm/trunk/lib/CodeGen/ResetMachineFunctionPass.cpp


Index: llvm/trunk/lib/CodeGen/ResetMachineFunctionPass.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/ResetMachineFunctionPass.cpp
+++ llvm/trunk/lib/CodeGen/ResetMachineFunctionPass.cpp
@@ -26,6 +26,7 @@
 #define DEBUG_TYPE "reset-machine-function"
 
 STATISTIC(NumFunctionsReset, "Number of functions reset");
+STATISTIC(NumFunctionsVisited, "Number of functions visited");
 
 namespace {
   class ResetMachineFunction : public MachineFunctionPass {
@@ -50,6 +51,7 @@
     }
 
     bool runOnMachineFunction(MachineFunction &MF) override {
+      ++NumFunctionsVisited;
       // No matter what happened, whether we successfully selected the function
       // or not, nothing is going to use the vreg types after us. Make sure they
       // disappear.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59285.190550.patch
Type: text/x-patch
Size: 808 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190314/f058ff05/attachment-0001.bin>


More information about the llvm-commits mailing list