Skip to content

Commit 8de8969

Browse files
address comments
1 parent e52d3bd commit 8de8969

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32815,6 +32815,8 @@ void X86TargetLowering::ReplaceNodeResults(SDNode *N,
3281532815
// No other ValueType for FP_EXTEND should reach this point.
3281632816
assert(N->getValueType(0) == MVT::v2f32 &&
3281732817
"Do not know how to legalize this Node");
32818+
if (!Subtarget.hasFP16() || !Subtarget.hasVLX())
32819+
return;
3281832820
bool IsStrict = N->isStrictFPOpcode();
3281932821
SDValue Src = N->getOperand(IsStrict ? 1 : 0);
3282032822
if (Src.getValueType().getVectorElementType() != MVT::f16)

0 commit comments

Comments
 (0)