[llvm] r335817 - [DAGCombiner] Remove unused variable. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 28 02:29:09 PDT 2018


Author: rksimon
Date: Thu Jun 28 02:29:08 2018
New Revision: 335817

URL: http://llvm.org/viewvc/llvm-project?rev=335817&view=rev
Log:
[DAGCombiner] Remove unused variable. NFCI.

Noticed in D45806 review.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=335817&r1=335816&r2=335817&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Thu Jun 28 02:29:08 2018
@@ -3047,8 +3047,6 @@ SDValue DAGCombiner::visitSDIV(SDNode *N
 
   // Helper for determining whether a value is a power-2 constant scalar or a
   // vector of such elements.
-  SmallBitVector KnownNegatives(
-      (N1C || !VT.isVector()) ? 1 : VT.getVectorNumElements(), false);
   auto IsPowerOfTwo = [](ConstantSDNode *C) {
     if (C->isNullValue() || C->isOpaque())
       return false;




More information about the llvm-commits mailing list