]> granicus.if.org Git - llvm/commit
[X86][AVX] Ensure chained subvector insertions are the same size (PR42833)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 31 Jul 2019 12:55:39 +0000 (12:55 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 31 Jul 2019 12:55:39 +0000 (12:55 +0000)
commite4b125abc554d2e7e0774823595eb1e8b29526df
tree1e0f8ce3c28bdc6daf2e70acb631ec45b7c5291e
parent31b6172a53c542bd5741e37f5ab770017434dca8
[X86][AVX] Ensure chained subvector insertions are the same size (PR42833)

Before combining insert_subvector(insert_subvector(vec, sub0, c0), sub1, c1) patterns, ensure that the subvectors are all the same type. On AVX512 targets especially we might have a mixture of 128/256 subvector insertions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367429 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/oddsubvector.ll