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)
commit19dd3088c088ecd1bddfcaab46a95d8ac21accc2
tree1599ceed49fea7bb1f967002382cde8134dc4bcb
parent94d908216b7feae26fb367a5d0660ead57097d63
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

llvm-svn: 213798
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/test/CodeGen/X86/x86-setcc-int-to-fp-combine.ll