[llvm] DAG: Fix chain mismanagement in SoftenFloatRes_FP_EXTEND (PR #74406)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 5 03:59:07 PST 2023
================
@@ -2181,6 +2186,20 @@ static ISD::NodeType GetPromotionOpcode(EVT OpVT, EVT RetVT) {
report_fatal_error("Attempt at an invalid promotion-related conversion");
}
+static ISD::NodeType GetPromotionOpcodeStrict(EVT OpVT, EVT RetVT) {
+ if (OpVT == MVT::f16) {
+ return ISD::STRICT_FP16_TO_FP;
+ } else if (RetVT == MVT::f16) {
+ return ISD::STRICT_FP_TO_FP16;
+ } else if (OpVT == MVT::bf16) {
+ // return ISD::STRICT_BF16_TO_FP;
+ } else if (RetVT == MVT::bf16) {
----------------
RKSimon wrote:
(style) Break if-else chain
https://github.com/llvm/llvm-project/pull/74406
More information about the llvm-commits
mailing list