DAG: fp->int conversion for non-splat constants.
authorJim Grosbach <grosbach@apple.com>
Wed, 23 Jul 2014 20:41:31 +0000 (20:41 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 23 Jul 2014 20:41:31 +0000 (20:41 +0000)
commitdf48c93ef0766419587ccf4f744d53b02c2fb8c1
tree94098ebed695a617ece81cf65d836eddcbf28919
parent2941802badca930ed6409de938a1e35cf5f62a14
DAG: fp->int conversion for non-splat constants.

Constant fold the lanes of the input constant build_vector individually
so we correctly handle when the vector elements are not all the same
constant value.

PR20394

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213798 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
test/CodeGen/X86/x86-setcc-int-to-fp-combine.ll