[X86] In combineMOVMSK, look through int->fp bitcasts before callling SimplifyDemande...
authorCraig Topper <craig.topper@intel.com>
Tue, 11 Sep 2018 08:20:02 +0000 (08:20 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 11 Sep 2018 08:20:02 +0000 (08:20 +0000)
commit844f035e1e14b11939ae2cc4b147379519b62c67
treee5ba66c6295aa9faf62a6a4e2f06dbedcbb81472
parent174d2cf7711ebab7e3d3c581d0385d999e09eb19
[X86] In combineMOVMSK, look through int->fp bitcasts before callling SimplifyDemandedBits.

MOVMSKPS and MOVMSKPD both take FP types, but likely the operations before it are on integer types with just a int->fp bitcast between them. If the bitcast isn't used by anything else and doesn't change the element width we can look through it to simplify the integer ops.

llvm-svn: 341915
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/movmsk-cmp.ll