[X86] Fix a lowering issue of mask.compress which has undef float passthrough
authorBing1 Yu <bing1.yu@intel.com>
Tue, 16 Aug 2022 08:42:08 +0000 (16:42 +0800)
committerBing1 Yu <bing1.yu@intel.com>
Tue, 16 Aug 2022 09:54:45 +0000 (17:54 +0800)
commit807b8cb06ca05228f3ecb4709f4f4141748d2ca9
tree54fa3c6fe212447c9df8302ae2244968b41f68b0
parentc6b5a13b7ae559299841f50cd9c32f02a79f13f7
[X86] Fix a lowering issue of mask.compress which has undef float passthrough

Previously, LegaizeDAG didn't check mask.compress's passthrough might be float, and this lead to getConstant crash since it doesn't support fp

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D131947
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/compress-undef-float-passthrough.ll [new file with mode: 0644]