summaryrefslogtreecommitdiff
path: root/lib/Target/README.txt
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2011-01-23 20:31:00 +0000
committerAnders Carlsson <andersca@mac.com>2011-01-23 20:31:00 +0000
commitf330b3227ad8b381aebf267acddf8f244f556f6b (patch)
tree467ed03f941ab6606cefe029e1b8b37b269b27b8 /lib/Target/README.txt
parent76167af9b1968b2824fcb76db0bc571f422035b4 (diff)
downloadllvm-f330b3227ad8b381aebf267acddf8f244f556f6b.tar.gz
llvm-f330b3227ad8b381aebf267acddf8f244f556f6b.tar.bz2
llvm-f330b3227ad8b381aebf267acddf8f244f556f6b.tar.xz
Add a memset loop that LoopIdiomRecognize doesn't recognize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/README.txt')
-rw-r--r--lib/Target/README.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt
index 67aec852fa..ea9bc8d84c 100644
--- a/lib/Target/README.txt
+++ b/lib/Target/README.txt
@@ -289,6 +289,14 @@ unsigned int popcount(unsigned int input) {
This sort of thing should be added to the loop idiom pass.
+This loop isn't converted to a memset:
+
+void f(char *dest, int n) {
+ for (int i = 0; i < n; ++i) {
+ dest[n] = 0;
+ }
+}
+
//===---------------------------------------------------------------------===//
These should turn into single 16-bit (unaligned?) loads on little/big endian