Pull in r327638 from upstream llvm trunk (by Matthew Simpson):
authordim <dim@FreeBSD.org>
Fri, 16 Mar 2018 17:50:44 +0000 (17:50 +0000)
committerdim <dim@FreeBSD.org>
Fri, 16 Mar 2018 17:50:44 +0000 (17:50 +0000)
commit18672e108286e2d8a15333316d8081e0f4bf6ed8
tree77447dafe27c44f242260e4a4d9cf35ce5dda4e2
parent1e39fd0d1778be3695daab1db2435025c7fe2b27
Pull in r327638 from upstream llvm trunk (by Matthew Simpson):

  [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

This fixes an assertion when building the emulators/snes9x port.

Reported by: jbeich
PR: 225471
MFC after: 3 months
X-MFC-With: r327952
contrib/llvm/lib/Analysis/InstructionSimplify.cpp
contrib/llvm/lib/IR/ConstantFold.cpp