Optimizing swizzles of complex shuffles may generate additional complex shuffles.
authorNadav Rotem <nadav.rotem@intel.com>
Mon, 2 Apr 2012 07:11:12 +0000 (07:11 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Mon, 2 Apr 2012 07:11:12 +0000 (07:11 +0000)
commit44b5e6de8cb7a5562f698078415a3a9b608b8ed6
tree52a6ba2aab3f6bf275ffb2c71fba53731194c0d2
parent7c0b3c1fb6395475e262d66ee403645f0c67dee2
Optimizing swizzles of complex shuffles may generate additional complex shuffles.

Do not try to optimize swizzles of shuffles if the source shuffle has more than
a single user, except when the source shuffle is also a swizzle.

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