diff options
author | Thomas Lively <tlively@google.com> | 2019-01-31 00:35:37 +0000 |
---|---|---|
committer | Thomas Lively <tlively@google.com> | 2019-01-31 00:35:37 +0000 |
commit | 9510adafe6abdfa806d8bb23d80a457983c6b6a9 (patch) | |
tree | 821c4f49442b3d0a1ccfdd9869929cc2c57f7e72 /llvm/lib/CodeGen | |
parent | 0d298f5af5902e5421ecb341b3b7ae096946b840 (diff) | |
download | bcm5719-llvm-9510adafe6abdfa806d8bb23d80a457983c6b6a9.tar.gz bcm5719-llvm-9510adafe6abdfa806d8bb23d80a457983c6b6a9.zip |
[LegalizeVectorTypes] Allow illegal indices when splitting extract_vector_elt
Summary:
Fixes PR40267, in which the removed assertion was triggering on
perfectly valid IR. As far as I can tell, constant out of bounds
indices should be allowed when splitting extract_vector_elt, since
they will simply be propagated as out of bounds indices in the
resulting split vector and handled appropriately elsewhere.
Reviewers: aheejin
Subscribers: dschuff, sbc100, jgravelle-google, hiraditya
Differential Revision: https://reviews.llvm.org/D57471
llvm-svn: 352702
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp index 66ee648cbeb..8252f8a5c89 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp @@ -1919,7 +1919,6 @@ SDValue DAGTypeLegalizer::SplitVecOp_EXTRACT_VECTOR_ELT(SDNode *N) { if (isa<ConstantSDNode>(Idx)) { uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue(); - assert(IdxVal < VecVT.getVectorNumElements() && "Invalid vector index!"); SDValue Lo, Hi; GetSplitVector(Vec, Lo, Hi); |