OSDN Git Service

X86: restrict combine to when type sizes are safe.
authorJim Grosbach <grosbach@apple.com>
Wed, 23 Jul 2014 20:41:38 +0000 (20:41 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 23 Jul 2014 20:41:38 +0000 (20:41 +0000)
commit4070037e3c73be363fdcf332e4b618729fd86072
treeb1131b1d9d151bef0ea8f97a02edb9a747416b15
parentdf48c93ef0766419587ccf4f744d53b02c2fb8c1
X86: restrict combine to when type sizes are safe.

The folding of unary operations through a vector compare and mask operation
is only safe if the unary operation result is of the same size as its input.
For example, it's not safe for [su]itofp from v4i32 to v4f64.

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