[llvm] [CodeGen] expand-fp: Change frem expansion criterion (PR #158285)
Frederik Harwath via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 27 03:04:57 PST 2025
================
@@ -534,9 +534,9 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
setOperationAction(ISD::SRA_PARTS, MVT::i64, Custom);
setOperationAction(ISD::SRL_PARTS, MVT::i64, Custom);
- setOperationAction(ISD::FREM, MVT::f32, Expand);
- setOperationAction(ISD::FREM, MVT::f64, Expand);
- setOperationAction(ISD::FREM, MVT::f80, Expand);
+ setOperationAction(ISD::FREM, MVT::f32, LibCall);
+ setOperationAction(ISD::FREM, MVT::f64, LibCall);
+ setOperationAction(ISD::FREM, MVT::f80, LibCall);
----------------
frederik-h wrote:
> Sounds like a mistake copied from another backend - we can remove it. I'll put together a patch.
See @davemgreen's PR #169545. Marking the conversation here as resolved.
https://github.com/llvm/llvm-project/pull/158285
More information about the llvm-commits
mailing list