Skip to content

Commit 56369a8

Browse files
arsenmfrederik-h
authored andcommitted
DAG: Fix promote of half freeze
Round out the AMDGPU codegen test to all the generations to cover the illegal f16 targets.
1 parent f38f769 commit 56369a8

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
@@ -2756,7 +2756,10 @@ void DAGTypeLegalizer::PromoteFloatResult(SDNode *N, unsigned ResNo) {
27562756
#endif
27572757
report_fatal_error("Do not know how to promote this operator's result!");
27582758

2759-
case ISD::BITCAST: R = PromoteFloatRes_BITCAST(N); break;
2759+
case ISD::BITCAST:
2760+
case ISD::FREEZE:
2761+
R = PromoteFloatRes_BITCAST(N);
2762+
break;
27602763
case ISD::ConstantFP: R = PromoteFloatRes_ConstantFP(N); break;
27612764
case ISD::EXTRACT_VECTOR_ELT:
27622765
R = PromoteFloatRes_EXTRACT_VECTOR_ELT(N); break;

0 commit comments

Comments
 (0)