diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-02-27 21:59:07 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-02-27 21:59:07 +0000 |
commit | 4a7cc16e89b68d48335e7cd19837c3e67e12afb2 (patch) | |
tree | 183c2084049858b14c909e95464e178329c2013e | |
parent | fe422f7462b074a305ddd951bb1b2f54860972f7 (diff) | |
download | bcm5719-llvm-4a7cc16e89b68d48335e7cd19837c3e67e12afb2.tar.gz bcm5719-llvm-4a7cc16e89b68d48335e7cd19837c3e67e12afb2.zip |
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
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 2ea060b1167..9521936ce99 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/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()); |