diff options
author | Anders Carlsson <andersca@mac.com> | 2011-01-23 20:31:00 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-01-23 20:31:00 +0000 |
commit | f330b3227ad8b381aebf267acddf8f244f556f6b (patch) | |
tree | 467ed03f941ab6606cefe029e1b8b37b269b27b8 /lib/Target | |
parent | 76167af9b1968b2824fcb76db0bc571f422035b4 (diff) | |
download | external_llvm-f330b3227ad8b381aebf267acddf8f244f556f6b.zip external_llvm-f330b3227ad8b381aebf267acddf8f244f556f6b.tar.gz external_llvm-f330b3227ad8b381aebf267acddf8f244f556f6b.tar.bz2 |
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')
-rw-r--r-- | lib/Target/README.txt | 8 |
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 |