[llvm] [llvm][ARM][CodeGen] Disable MEMCPY LDM/STM inlining for Cortex v7-m (PR #106378)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 16 08:29:38 PDT 2024
================
@@ -465,6 +465,16 @@ class ARMSubtarget : public ARMGenSubtargetInfo {
/// True if fast-isel is used.
bool useFastISel() const;
+ /// True if ARMISD::MEMCPY should not be created/expanded specially (e.g.
+ /// as LDM/STM pairs).
+ bool wantsMEMCPYAsLdSt() const { return HasV7Ops && ARMProcClass == MClass; }
+
+ /// True if volatile ARMISD::MEMCPY should not be created/expanded specially
+ /// (e.g. as LDM/STM pairs).
+ bool wantsVolatileMEMCPYAsLdSt() const {
+ return ARMProcClass == MClass && HasV6Ops && !HasV7Ops;
----------------
davemgreen wrote:
I'm not sure this does anything, as this is only enabled for M7.
https://github.com/llvm/llvm-project/pull/106378
More information about the llvm-commits
mailing list