From: Chris Lattner Date: Mon, 24 Jan 2011 02:32:00 +0000 (+0000) Subject: this isn't a memset, we do convert dest[i] to one though :) X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=96c0771c01f4a7858a3a15919d70a1b1ab8f6ac1;p=oota-llvm.git this isn't a memset, we do convert dest[i] to one though :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124097 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/README.txt b/lib/Target/README.txt index 153c7d90680..8b5c5ce1371 100644 --- a/lib/Target/README.txt +++ b/lib/Target/README.txt @@ -289,14 +289,6 @@ 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