[llvm] d5545db - AMDGPU: Mark strict_fp16_to_fp as expand (#177417)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 22 11:16:39 PST 2026


Author: Matt Arsenault
Date: 2026-01-22T20:16:34+01:00
New Revision: d5545db0b08e939c3fad42a1635f8cd5224318d2

URL: https://github.com/llvm/llvm-project/commit/d5545db0b08e939c3fad42a1635f8cd5224318d2
DIFF: https://github.com/llvm/llvm-project/commit/d5545db0b08e939c3fad42a1635f8cd5224318d2.diff

LOG: AMDGPU: Mark strict_fp16_to_fp as expand (#177417)

This prevents a regression in a future change.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
index 8cc9c64b1c580..c46293b32b08e 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
@@ -481,7 +481,8 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM,
        MVT::v4i64,  MVT::v8f64,  MVT::v8i64,  MVT::v16f64, MVT::v16i64},
       Custom);
 
-  setOperationAction(ISD::FP16_TO_FP, MVT::f64, Expand);
+  setOperationAction({ISD::FP16_TO_FP, ISD::STRICT_FP16_TO_FP}, MVT::f64,
+                     Expand);
   setOperationAction(ISD::FP_TO_FP16, {MVT::f64, MVT::f32}, Custom);
 
   const MVT ScalarIntVTs[] = { MVT::i32, MVT::i64 };


        


More information about the llvm-commits mailing list