]> granicus.if.org Git - llvm/commit
[X86] Use correct subvector index when combining two insert subvectors featuring...
authorCraig Topper <craig.topper@intel.com>
Thu, 28 Sep 2017 16:53:16 +0000 (16:53 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 28 Sep 2017 16:53:16 +0000 (16:53 +0000)
commit4abc80e6ee6de14b4ff41cc4c7063bcd74e66d50
treef31edcb6cceae2fbcb519c0d64d7958771d98246
parente7870d75ef7b9b6c844b38f37ecf931ca39e394c
[X86] Use correct subvector index when combining two insert subvectors featuring zero vectors.

Previously we were using one of the subvector indices twice. The included test case causes an assert without this change.

Thanks to Simon Pilgrim for catching this.

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