[x86] avoid crashing when splitting AVX stores with non-simple type (PR43916)
authorSanjay Patel <spatel@rotateright.com>
Wed, 6 Nov 2019 14:06:48 +0000 (09:06 -0500)
committerSanjay Patel <spatel@rotateright.com>
Wed, 6 Nov 2019 14:28:41 +0000 (09:28 -0500)
commit8e34dd941cb304c785ef623633ad663b59cfced0
tree7c15cb6ce73fd4c566e396685c2f17c9eed45dc1
parent3e54404c71564d9c684742439f178f07f1e45a70
[x86] avoid crashing when splitting AVX stores with non-simple type (PR43916)

The store splitting transform was assuming a simple type (MVT),
but that's not necessarily the case as shown in the test.
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/avx-load-store.ll