OSDN Git Service

[InstCombine] Canonicalize insert splat sequences into an insert + shuffle
authorMichael Kuperstein <mkuper@google.com>
Wed, 28 Dec 2016 00:18:08 +0000 (00:18 +0000)
committerMichael Kuperstein <mkuper@google.com>
Wed, 28 Dec 2016 00:18:08 +0000 (00:18 +0000)
commit04912c82259bc53062cc23d241a011afd2f9b3d3
tree2fd501939f5b3c1ccd16a3e8218e48e232dcbb12
parentd31ce373a9d586c3f88f9c7b3b00970b8fb67dc3
[InstCombine] Canonicalize insert splat sequences into an insert + shuffle

This adds a combine that canonicalizes a chain of inserts which broadcasts
a value into a single insert + a splat shufflevector.

This fixes PR31286.

Differential Revision: https://reviews.llvm.org/D27992

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290641 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
test/Transforms/BBVectorize/X86/loop1.ll
test/Transforms/BBVectorize/loop1.ll
test/Transforms/BBVectorize/simple-int.ll
test/Transforms/InstCombine/broadcast.ll [new file with mode: 0644]
test/Transforms/SLPVectorizer/X86/operandorder.ll