[DAGCombiner][X86] Pass the CmpOpVT to reduceSelectOfFPConstantLoads so X86 can exclu...
authorCraig Topper <craig.topper@intel.com>
Thu, 12 Sep 2019 21:30:18 +0000 (21:30 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 12 Sep 2019 21:30:18 +0000 (21:30 +0000)
commitefe6724b9f55b0382f97577c582306b856ff1f95
treecd1448d9906a742cf061bba4560f5c5f869b4c98
parent08df6e64d5700d9469358ecfa4bdb46073116529
[DAGCombiner][X86] Pass the CmpOpVT to reduceSelectOfFPConstantLoads so X86 can exclude fp128 compares.

The X86 decision assumes the compare will produce a result in an XMM
register, but that can't happen for an fp128 compare since those
go to a libcall the returns an i32. Pass the VT so X86 can check
the type.

llvm-svn: 371775
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Target/X86/X86ISelLowering.h
llvm/test/CodeGen/X86/fp128-i128.ll