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)
commit1a5cc710ee78bf55c3799b49c6fd37619d2dbb7b
treef06342afabab5fd60234e86c9aa727acd2807d36
parent991b6a22b6592b56ae890f30c478f835480e7cf5
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.

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