switch more statistics over to STATISTIC, eliminating static ctors. Also,

delete some dead ones.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2006-12-19 22:17:40 +00:00
parent 86453c52ba
commit d216e8ba60
9 changed files with 30 additions and 39 deletions

View File

@ -27,6 +27,7 @@
//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "lcssa"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Constants.h"
#include "llvm/Pass.h"
@ -39,13 +40,11 @@
#include "llvm/Support/CFG.h"
#include <algorithm>
#include <map>
using namespace llvm;
STATISTIC(NumLCSSA, "Number of live out of a loop variables");
namespace {
static Statistic NumLCSSA("lcssa",
"Number of live out of a loop variables");
struct LCSSA : public FunctionPass {
// Cached analysis information for the current function.
LoopInfo *LI;