mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 13:46:13 +00:00
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
This commit is contained in:
parent
76167af9b1
commit
f330b3227a
@ -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