OSDN Git Service

[DAGCombiner] Extending pattern detection for vector shuffle.
authorJatin Bhateja <jatin.bhateja@gmail.com>
Sat, 19 Aug 2017 18:08:59 +0000 (18:08 +0000)
committerJatin Bhateja <jatin.bhateja@gmail.com>
Sat, 19 Aug 2017 18:08:59 +0000 (18:08 +0000)
commit9dc6615ef8734fac17b0ecdadda8d9f34dd39b0b
tree3b52df7774228939a7b5c2676cb3f921422300c3
parent77be502efc104e9569813daf99a8ab4a24437be4
[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.

    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@311255 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