[llvm] r288913 - [SelectionDAG] Removed old knownbits TODO comment. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 07:31:12 PST 2016


Author: rksimon
Date: Wed Dec  7 09:31:12 2016
New Revision: 288913

URL: http://llvm.org/viewvc/llvm-project?rev=288913&view=rev
Log:
[SelectionDAG] Removed old knownbits TODO comment. NFCI.

EXTRACT_VECTOR_ELT does support demanded elts if the element index is known and in range.

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

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=288913&r1=288912&r2=288913&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Wed Dec  7 09:31:12 2016
@@ -2562,9 +2562,6 @@ void SelectionDAG::computeKnownBits(SDVa
     break;
   }
   case ISD::EXTRACT_VECTOR_ELT: {
-    // At the moment we keep this simple and skip tracking the specific
-    // element. This way we get the lowest common denominator for all elements
-    // of the vector.
     SDValue InVec = Op.getOperand(0);
     SDValue EltNo = Op.getOperand(1);
     EVT VecVT = InVec.getValueType();




More information about the llvm-commits mailing list