aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target')
-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 67aec85..ea9bc8d 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