[llvm] a2a0f9a - [VectorCombine] remove unused debug counter; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 11 05:25:06 PST 2020


Author: Sanjay Patel
Date: 2020-02-11T08:24:07-05:00
New Revision: a2a0f9a43a7157ef2dcc9dfb0d3b94af283991ba

URL: https://github.com/llvm/llvm-project/commit/a2a0f9a43a7157ef2dcc9dfb0d3b94af283991ba
DIFF: https://github.com/llvm/llvm-project/commit/a2a0f9a43a7157ef2dcc9dfb0d3b94af283991ba.diff

LOG: [VectorCombine] remove unused debug counter; NFC

The variable was added to the initial commit via copy/paste of existing
code, but it wasn't actually used in the code. We can add it back with
the proper usage if/when that is needed.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
index 378d27050001..2c6987893e9e 100644
--- a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+++ b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -22,7 +22,6 @@
 #include "llvm/IR/PatternMatch.h"
 #include "llvm/InitializePasses.h"
 #include "llvm/Pass.h"
-#include "llvm/Support/DebugCounter.h"
 #include "llvm/Transforms/Vectorize.h"
 #include "llvm/Transforms/Utils/Local.h"
 
@@ -31,8 +30,6 @@ using namespace llvm::PatternMatch;
 
 #define DEBUG_TYPE "vector-combine"
 STATISTIC(NumVecCmp, "Number of vector compares formed");
-DEBUG_COUNTER(VecCombineCounter, "vector-combine-transform",
-              "Controls transformations in vector-combine pass");
 
 static bool foldExtractCmp(Instruction &I, const TargetTransformInfo &TTI) {
   // Match a cmp with extracted vector operands.


        


More information about the llvm-commits mailing list