]> granicus.if.org Git - llvm/commit
[DAGCombiner] Extending pattern detection for vector shuffle.
authorJatin Bhateja <jatin.bhateja@gmail.com>
Sat, 26 Aug 2017 19:02:36 +0000 (19:02 +0000)
committerJatin Bhateja <jatin.bhateja@gmail.com>
Sat, 26 Aug 2017 19:02:36 +0000 (19:02 +0000)
commit9d2ff1a85a8932ce71c80cd166fd9fbfff556f95
tree4a704a947a7672ed820ebb6b8403c4814c407fda
parentafa978fffd05e487cbbe2bf98f3e98e770649d6a
[DAGCombiner] Extending pattern detection for vector shuffle.

Summary:
If all the operands of a BUILD_VECTOR extract elements from same vector then split the
vector efficiently based on the maximum vector access index.

This will also fix PR 33784

Reviewers: zvi, delena, RKSimon, thakis

Reviewed By: RKSimon

Subscribers: chandlerc, eladcohen, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311833 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/shuffle-vs-trunc-512.ll
test/CodeGen/X86/vector-shuffle-512-v16.ll
test/CodeGen/X86/vector-shuffle-512-v8.ll
test/CodeGen/X86/x86-interleaved-access.ll