Lower the threshold at which memcpy / memmove / memset stop being expanded
authorRichard Osborne <richard@xmos.com>
Thu, 16 Jul 2009 12:41:34 +0000 (12:41 +0000)
committerRichard Osborne <richard@xmos.com>
Thu, 16 Jul 2009 12:41:34 +0000 (12:41 +0000)
inline in the XCore.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75906 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/XCore/XCoreISelLowering.cpp

index 7afc39e5e4b8b6cd8bf26f24ef6f2cbe8514d213..0f503bc7a64416ac1f454dec051950970cd64c93 100644 (file)
@@ -150,6 +150,9 @@ XCoreTargetLowering::XCoreTargetLowering(XCoreTargetMachine &XTM)
   // Debug
   setOperationAction(ISD::DBG_STOPPOINT, MVT::Other, Expand);
   setOperationAction(ISD::DEBUG_LOC, MVT::Other, Expand);
+
+  maxStoresPerMemset = 4;
+  maxStoresPerMemmove = maxStoresPerMemcpy = 2;
 }
 
 SDValue XCoreTargetLowering::