Add a note about lowering llvm.memset, llvm.memcpy, and llvm.memmove to a
authorReid Spencer <rspencer@reidspencer.com>
Sun, 29 Jan 2006 06:48:25 +0000 (06:48 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 29 Jan 2006 06:48:25 +0000 (06:48 +0000)
few stores under certain conditions.

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

lib/Target/X86/README.txt

index 230876164467f6569f3545889a737dd3bf81c5f3..ac8f3f1e08f4a1a97bfb1450b267926b3b4b3f6b 100644 (file)
@@ -168,6 +168,13 @@ Combine: a = sin(x), b = cos(x) into a,b = sincos(x).
 
 //===---------------------------------------------------------------------===//
 
+For all targets, not just X86:
+When llvm.memcpy, llvm.memset, or llvm.memmove are lowered, they should be 
+optimized to a few store instructions if the source is constant and the length
+is smallish (< 8). This will greatly help some tests like Shootout/strcat.c
+
+//===---------------------------------------------------------------------===//
+
 Solve this DAG isel folding deficiency:
 
 int X, Y;