Set maxStoresPerMemSet to 16. Ditto for maxStoresPerMemCpy and
authorEvan Cheng <evan.cheng@apple.com>
Tue, 14 Feb 2006 08:25:08 +0000 (08:25 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 14 Feb 2006 08:25:08 +0000 (08:25 +0000)
maxStoresPerMemMove. Although the last one is not used.

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

lib/Target/X86/X86ISelLowering.cpp

index 82be21583465959ba9c87b09944771aa8a038fc2..73148e6fa03ce1c967a88ec89429e8cc387d2f5f 100644 (file)
@@ -251,9 +251,11 @@ X86TargetLowering::X86TargetLowering(TargetMachine &TM)
   }
   computeRegisterProperties();
 
-  maxStoresPerMemSet = 8; // For %llvm.memset -> sequence of stores
-  maxStoresPerMemCpy = 8; // For %llvm.memcpy -> sequence of stores
-  maxStoresPerMemMove = 8; // For %llvm.memmove -> sequence of stores
+  // FIXME: These should be based on subtarget info. Plus, the values should
+  // be smaller when we are in optimizing for size mode.
+  maxStoresPerMemSet = 16; // For %llvm.memset -> sequence of stores
+  maxStoresPerMemCpy = 16; // For %llvm.memcpy -> sequence of stores
+  maxStoresPerMemMove = 16; // For %llvm.memmove -> sequence of stores
   allowUnalignedMemoryAccesses = true; // x86 supports it!
 }