]> granicus.if.org Git - llvm/commit
[DAGCombiner] (insert_vector_elt (vector_shuffle X, Y), (extract_vector_elt X, N...
authorAmaury Sechet <deadalnix@gmail.com>
Thu, 29 Aug 2019 10:35:51 +0000 (10:35 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Thu, 29 Aug 2019 10:35:51 +0000 (10:35 +0000)
commitae86cd45ead0cd14f042e4bf553b9e561953bad0
treed4224ea245f06ea501e217bf034b19f5229cf92d
parentdc9ffcf01f621915d4b6d76823042e74aceffce6
[DAGCombiner] (insert_vector_elt (vector_shuffle X, Y), (extract_vector_elt X, N), IdxC) -> (vector_shuffle X, Y)

Summary: This is beneficial when the shuffle is only used once and end up being generated in a few places when some node is combined into a shuffle.

Reviewers: craig.topper, efriedma, RKSimon, lebedev.ri

Subscribers: llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370326 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/madd.ll
test/CodeGen/X86/vector-shuffle-combining.ll