[llvm] [AMDGPU] Implement IR expansion for frem instruction (PR #130988)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon May 5 05:49:08 PDT 2025


================
@@ -2393,21 +2393,6 @@ SDValue AMDGPUTargetLowering::LowerSDIVREM(SDValue Op,
   return DAG.getMergeValues(Res, DL);
 }
 
-// (frem x, y) -> (fma (fneg (ftrunc (fdiv x, y))), y, x)
----------------
arsenm wrote:

Probably, it's not particularly well defined but it starts breaking down at pretty large values 

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


More information about the llvm-commits mailing list