Skip to content

Commit ec72666

Browse files
committed
Revert "[SLP]Add debug counter support"
This reverts commit 67dd9d2 to fix https://lab.llvm.org/buildbot/#/builders/11/builds/6012
1 parent 34f0edd commit ec72666

File tree

2 files changed

+0
-216
lines changed

2 files changed

+0
-216
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
#include "llvm/Support/Compiler.h"
8080
#include "llvm/Support/DOTGraphTraits.h"
8181
#include "llvm/Support/Debug.h"
82-
#include "llvm/Support/DebugCounter.h"
8382
#include "llvm/Support/ErrorHandling.h"
8483
#include "llvm/Support/GraphWriter.h"
8584
#include "llvm/Support/InstructionCost.h"
@@ -110,9 +109,6 @@ using namespace slpvectorizer;
110109

111110
STATISTIC(NumVectorInstructions, "Number of vector instructions generated");
112111

113-
DEBUG_COUNTER(VectorizedGraphs, "slp-vectorized",
114-
"Controls which SLP graphs should be vectorized.");
115-
116112
static cl::opt<bool>
117113
RunSLPVectorization("vectorize-slp", cl::init(true), cl::Hidden,
118114
cl::desc("Run the SLP vectorization passes"));
@@ -11179,9 +11175,6 @@ bool BoUpSLP::isLoadCombineCandidate(ArrayRef<Value *> Stores) const {
1117911175
}
1118011176

1118111177
bool BoUpSLP::isTreeTinyAndNotFullyVectorizable(bool ForReduction) const {
11182-
if (!DebugCounter::shouldExecute(VectorizedGraphs))
11183-
return true;
11184-
1118511178
// No need to vectorize inserts of gathered values.
1118611179
if (VectorizableTree.size() == 2 &&
1118711180
isa<InsertElementInst>(VectorizableTree[0]->Scalars[0]) &&

llvm/test/Transforms/SLPVectorizer/X86/debug-counter.ll

Lines changed: 0 additions & 209 deletions
This file was deleted.

0 commit comments

Comments
 (0)