[llvm] r296393 - Revert "DAG: Check if extract_vector_elt is legal or custom"

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 27 13:59:07 PST 2017


Author: arsenm
Date: Mon Feb 27 15:59:07 2017
New Revision: 296393

URL: http://llvm.org/viewvc/llvm-project?rev=296393&view=rev
Log:
Revert "DAG: Check if extract_vector_elt is legal or custom"

This reverts r295782. This could potentially result in some
legalization loops and I avoided the need for this.

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=296393&r1=296392&r2=296393&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Mon Feb 27 15:59:07 2017
@@ -7907,7 +7907,7 @@ SDValue DAGCombiner::visitTRUNCATE(SDNod
     EVT SrcVT = VecSrc.getValueType();
     if (SrcVT.isVector() && SrcVT.getScalarType() == VT &&
         (!LegalOperations ||
-         TLI.isOperationLegalOrCustom(ISD::EXTRACT_VECTOR_ELT, SrcVT))) {
+         TLI.isOperationLegal(ISD::EXTRACT_VECTOR_ELT, SrcVT))) {
       SDLoc SL(N);
 
       EVT IdxVT = TLI.getVectorIdxTy(DAG.getDataLayout());




More information about the llvm-commits mailing list