[llvm-commits] [llvm] r124082 - /llvm/trunk/lib/Target/README.txt
Anders Carlsson
andersca at mac.com
Sun Jan 23 12:31:00 PST 2011
Author: andersca
Date: Sun Jan 23 14:31:00 2011
New Revision: 124082
URL: http://llvm.org/viewvc/llvm-project?rev=124082&view=rev
Log:
Add a memset loop that LoopIdiomRecognize doesn't recognize.
Modified:
llvm/trunk/lib/Target/README.txt
Modified: llvm/trunk/lib/Target/README.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/README.txt?rev=124082&r1=124081&r2=124082&view=diff
==============================================================================
--- llvm/trunk/lib/Target/README.txt (original)
+++ llvm/trunk/lib/Target/README.txt Sun Jan 23 14:31:00 2011
@@ -289,6 +289,14 @@
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
More information about the llvm-commits
mailing list