diff --git a/llvm/lib/Analysis/InstructionPrecedenceTracking.cpp b/llvm/lib/Analysis/InstructionPrecedenceTracking.cpp index a2a9c94c14ae8..8bebd465ff7d3 100644 --- a/llvm/lib/Analysis/InstructionPrecedenceTracking.cpp +++ b/llvm/lib/Analysis/InstructionPrecedenceTracking.cpp @@ -19,15 +19,11 @@ #include "llvm/Analysis/InstructionPrecedenceTracking.h" #include "llvm/Analysis/ValueTracking.h" -#include "llvm/ADT/Statistic.h" #include "llvm/IR/PatternMatch.h" #include "llvm/Support/CommandLine.h" using namespace llvm; -#define DEBUG_TYPE "ipt" -STATISTIC(NumInstScanned, "Number of insts scanned while updating ibt"); - #ifndef NDEBUG static cl::opt ExpensiveAsserts( "ipt-expensive-asserts", @@ -50,7 +46,6 @@ const Instruction *InstructionPrecedenceTracking::getFirstSpecialInstruction( auto [It, Inserted] = FirstSpecialInsts.try_emplace(BB); if (Inserted) { for (const auto &I : *BB) { - NumInstScanned++; if (isSpecialInstruction(&I)) { It->second = &I; break;