[InstCombine] Don't crash on out of bounds index in the insertelement
authorIgor Laevsky <igmyrj@gmail.com>
Thu, 7 Dec 2017 15:00:52 +0000 (15:00 +0000)
committerIgor Laevsky <igmyrj@gmail.com>
Thu, 7 Dec 2017 15:00:52 +0000 (15:00 +0000)
commit4a4f2e8c67c5fed1b4abacbc307137953d2f00a3
treef9d4ffa77691b6313360aca17013a4772ba0a644
parentff5212091a39188d02aa435b66adb5c86e4b4a72
[InstCombine] Don't crash on out of bounds index in the insertelement

Differential Revision: https://reviews.llvm.org/D40390

llvm-svn: 320049
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
llvm/test/Transforms/InstCombine/out-of-bounds-indexes.ll
llvm/test/Transforms/InstCombine/vector_insertelt_shuffle.ll