From: Matt Arsenault Date: Mon, 27 Feb 2017 21:59:07 +0000 (+0000) Subject: Revert "DAG: Check if extract_vector_elt is legal or custom" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68c622048b67db7c4282cfe35a6cc6c750b866e0;p=llvm 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296393 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 2ea060b1167..9521936ce99 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -7907,7 +7907,7 @@ SDValue DAGCombiner::visitTRUNCATE(SDNode *N) { 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());