[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; }
----------------
davemgreen wrote:

If there is a subtarget feature, this method it probably unnecessary.

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


More information about the llvm-commits mailing list