mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
Add a memset loop that LoopIdiomRecognize doesn't recognize.
llvm-svn: 124082
This commit is contained in:
parent
13a2b8281f
commit
ba7114ef4c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user