mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 19:26:30 +00:00
add a note
llvm-svn: 45377
This commit is contained in:
parent
f12327cd32
commit
e53df84267
@ -463,4 +463,23 @@ entry:
|
||||
ret int %tmp3
|
||||
}
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
"basicaa" should know how to look through "or" instructions that act like add
|
||||
instructions. For example in this code, the x*4+1 is turned into x*4 | 1, and
|
||||
basicaa can't analyze the array subscript, leading to duplicated loads in the
|
||||
generated code:
|
||||
|
||||
void test(int X, int Y, int a[]) {
|
||||
int i;
|
||||
for (i=2; i<1000; i+=4) {
|
||||
a[i+0] = a[i-1+0]*a[i-2+0];
|
||||
a[i+1] = a[i-1+1]*a[i-2+1];
|
||||
a[i+2] = a[i-1+2]*a[i-2+2];
|
||||
a[i+3] = a[i-1+3]*a[i-2+3];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
Loading…
x
Reference in New Issue
Block a user