[llvm] [AMDGPU] expand-fp: Change frem expansion criterion (PR #158285)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 12 05:29:36 PDT 2025


================
@@ -423,7 +423,7 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM,
   setOperationAction({ISD::LRINT, ISD::LLRINT}, {MVT::f16, MVT::f32, MVT::f64},
                      Expand);
 
-  setOperationAction(ISD::FREM, {MVT::f16, MVT::f32, MVT::f64}, Expand);
+  setOperationAction(ISD::FREM, {MVT::f16, MVT::f32, MVT::f64}, LibCall);
----------------
arsenm wrote:

This doesn't makes sense, we specifically do not want a libcall

https://github.com/llvm/llvm-project/pull/158285


More information about the llvm-commits mailing list