This lets clang diagnose unused statistics, so remove them.
std::atomic<unsigned> Value;
std::atomic<bool> Initialized;
- TrackingStatistic(const char *DebugType, const char *Name, const char *Desc)
+ constexpr TrackingStatistic(const char *DebugType, const char *Name,
+ const char *Desc)
: DebugType(DebugType), Name(Name), Desc(Desc), Value(0),
Initialized(false) {}
#define DEBUG_TYPE "livedebugvalues"
-STATISTIC(NumInserted, "Number of DBG_VALUE instructions inserted");
-STATISTIC(NumRemoved, "Number of DBG_VALUE instructions removed");
-
// Act more like the VarLoc implementation, by propagating some locations too
// far and ignoring some transfers.
static cl::opt<bool> EmulateOldLDV("emulate-old-livedebugvalues", cl::Hidden,
"Number of abstract attributes in a valid fixpoint state");
STATISTIC(NumAttributesManifested,
"Number of abstract attributes manifested in IR");
-STATISTIC(NumAttributesFixedDueToRequiredDependences,
- "Number of abstract attributes fixed due to required dependences");
// TODO: Determine a good default value.
//
STATISTIC(NumReadOnlyArg, "Number of arguments inferred as readonly");
STATISTIC(NumNoAlias, "Number of function returns inferred as noalias");
STATISTIC(NumNoUndef, "Number of function returns inferred as noundef returns");
-STATISTIC(NumNonNull, "Number of function returns inferred as nonnull returns");
STATISTIC(NumReturnedArg, "Number of arguments inferred as returned");
STATISTIC(NumWillReturn, "Number of functions inferred as willreturn");