Skip to content

Commit b8cf2b1

Browse files
committed
DAG: Fix promote of half freeze
Round out the AMDGPU codegen test to all the generations to cover the illegal f16 targets.
1 parent ded45cf commit b8cf2b1

File tree

2 files changed

+8217
-1
lines changed

2 files changed

+8217
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2763,7 +2763,10 @@ void DAGTypeLegalizer::PromoteFloatResult(SDNode *N, unsigned ResNo) {
27632763
#endif
27642764
report_fatal_error("Do not know how to promote this operator's result!");
27652765

2766-
case ISD::BITCAST: R = PromoteFloatRes_BITCAST(N); break;
2766+
case ISD::BITCAST:
2767+
case ISD::FREEZE:
2768+
R = PromoteFloatRes_BITCAST(N);
2769+
break;
27672770
case ISD::ConstantFP: R = PromoteFloatRes_ConstantFP(N); break;
27682771
case ISD::EXTRACT_VECTOR_ELT:
27692772
R = PromoteFloatRes_EXTRACT_VECTOR_ELT(N); break;

0 commit comments

Comments
 (0)