mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Eliminate static ctors from Statistics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32698 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "phielim"
|
||||
#include "llvm/CodeGen/LiveVariables.h"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||
@@ -28,10 +29,10 @@
|
||||
#include <algorithm>
|
||||
using namespace llvm;
|
||||
|
||||
STATISTIC(NumAtomic, "Number of atomic phis lowered");
|
||||
//STATISTIC(NumSimple, "Number of simple phis lowered");
|
||||
|
||||
namespace {
|
||||
static Statistic NumAtomic("phielim", "Number of atomic phis lowered");
|
||||
static Statistic NumSimple("phielim", "Number of simple phis lowered");
|
||||
|
||||
struct VISIBILITY_HIDDEN PNE : public MachineFunctionPass {
|
||||
bool runOnMachineFunction(MachineFunction &Fn) {
|
||||
analyzePHINodes(Fn);
|
||||
|
||||
Reference in New Issue
Block a user