Add a new DAGCombine optimization for BUILD_VECTOR.
authorNadav Rotem <nadav.rotem@intel.com>
Sat, 29 Oct 2011 21:23:04 +0000 (21:23 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Sat, 29 Oct 2011 21:23:04 +0000 (21:23 +0000)
commitb00418af67b36dcd7d70a268ebba3480c1011348
treebf0c4b39d2d831774d5ec7b7a182a2c29fb3c3f9
parentf86545ecfdb48a43e62ce7dfd312913b0a24240b
Add a new DAGCombine optimization for BUILD_VECTOR.
If all of the inputs are zero/any_extended, create a new simple BV
which can be further optimized by other BV optimizations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143297 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll
test/CodeGen/X86/2011-10-27-tstore.ll [new file with mode: 0644]
test/CodeGen/X86/vec_shuffle-37.ll