]> granicus.if.org Git - llvm/commit
[LegalizeVectorTypes] Allow illegal indices when splitting extract_vector_elt
authorThomas Lively <tlively@google.com>
Thu, 31 Jan 2019 00:35:37 +0000 (00:35 +0000)
committerThomas Lively <tlively@google.com>
Thu, 31 Jan 2019 00:35:37 +0000 (00:35 +0000)
commit6b2f7bde7bef14900a2bce71f927a0e7d9cc55ab
tree3bb1c508778bb5afee6134e32ee9d7f968817341
parent55d46c53d0770a7787618164452167a6c4b7b309
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352702 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
test/CodeGen/WebAssembly/PR40267.ll [new file with mode: 0644]