Teach DAG combine to fold (buildvec (Xint2fp x)) to (Xint2fp (buildvec x))
authorMichael Liao <michael.liao@intel.com>
Wed, 24 Oct 2012 04:14:18 +0000 (04:14 +0000)
committerMichael Liao <michael.liao@intel.com>
Wed, 24 Oct 2012 04:14:18 +0000 (04:14 +0000)
commit5922979e497715bb28f4787f51f8984d504421ce
treea6c5a39da0d1ec8c1657f71d02c04da7ee0a85f8
parentc5af149e707d7021b26490c84776da1c125fdc23
Teach DAG combine to fold (buildvec (Xint2fp x)) to (Xint2fp (buildvec x))

- If more than 1 elemennts are defined and target supports the vectorized
  conversion, use the vectorized one instead to reduce the strength on
  conversion operation.

llvm-svn: 166546
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/cvtv2f32.ll