[llvm] [CodeGen] expand-fp: Change frem expansion criterion (PR #158285)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 25 10:32:14 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);
----------------
davemgreen wrote:
Sounds like a mistake copied from another backend - we can remove it. I'll put together a patch.
https://github.com/llvm/llvm-project/pull/158285
More information about the llvm-commits
mailing list