OSDN Git Service

[InstCombine] Gracefully handle out of range extractelement indices
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 27 Dec 2017 12:00:18 +0000 (12:00 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 27 Dec 2017 12:00:18 +0000 (12:00 +0000)
commit415d43cb704272c428f60fcc6ae6ca4a9d1eb8c8
tree6224ee5b1df24c395f2b6c47fa0c9057bcc9a7b7
parent58a0346050b5596282ecfc8fdc9eaf6496456da6
[InstCombine] Gracefully handle out of range extractelement indices

InstSimplify is responsible for handling these, but we shouldn't just assert here.

Reduced from oss-fuzz #4808 test case

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321489 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
test/Transforms/InstCombine/extractelement.ll [new file with mode: 0644]