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.

llvm-svn: 296393
This commit is contained in:
Matt Arsenault 2017-02-27 21:59:07 +00:00
parent fe422f7462
commit 4a7cc16e89
1 changed files with 1 additions and 1 deletions

View File

@ -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());