1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

this isn't a memset, we do convert dest[i] to one though :)

llvm-svn: 124097
This commit is contained in:
Chris Lattner 2011-01-24 02:32:00 +00:00
parent 1f9ed3b437
commit c025bec9e1

View File

@ -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