[ConstantFolding, InstSimplify] Handle more vector GEPs
authorMatthew Simpson <mssimpso@codeaurora.org>
Thu, 15 Mar 2018 16:00:29 +0000 (16:00 +0000)
committerMatthew Simpson <mssimpso@codeaurora.org>
Thu, 15 Mar 2018 16:00:29 +0000 (16:00 +0000)
commitc1c4ad6e64fc0037f4f21952bc6d1a569bce2fa1
tree4336aca3876235b0a7e20243a3ae58b4ea25bdbb
parentf3de222b0d3c169985ba9d61f479f3e8a3675100
[ConstantFolding, InstSimplify] Handle more vector GEPs

This patch addresses some additional cases where the compiler crashes upon
encountering vector GEPs. This should fix PR36116.

Differential Revision: https://reviews.llvm.org/D44219
Reference: https://bugs.llvm.org/show_bug.cgi?id=36116

llvm-svn: 327638
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/lib/IR/ConstantFold.cpp
llvm/test/Analysis/ConstantFolding/vectorgep-crash.ll
llvm/test/Transforms/InstSimplify/vector_gep.ll