[X86,AArch64] Extend vcmp w/ unary op combine to work w/ more constants.
authorJim Grosbach <grosbach@apple.com>
Wed, 23 Jul 2014 20:41:43 +0000 (20:41 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 23 Jul 2014 20:41:43 +0000 (20:41 +0000)
commitadb6a3649e7ec5ff51da18771cb30c372462572d
tree4c6934b1325b8003da2b3d4112c8162ee949fc37
parent4070037e3c73be363fdcf332e4b618729fd86072
[X86,AArch64] Extend vcmp w/ unary op combine to work w/ more constants.

The transform to constant fold unary operations with an AND across a
vector comparison applies when the constant is not a splat of a scalar
as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213800 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