In case we can not analyze an access function, we do not discard the SCoP, but assume conservatively that all memory accesses that can be derived from our base pointer may be accessed. Patch provided by: Marcello Maggioni <hayarms@gmail.com> llvm-svn: 146972
16 lines
209 B
C
16 lines
209 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <math.h>
|
|
|
|
int main()
|
|
{
|
|
int A[1024*1024];
|
|
int i;
|
|
for (i = 0; i < 1024; i++)
|
|
A[i*i] = 2*i;
|
|
|
|
printf("Random Value: %d", A[rand() % 1024*1024]);
|
|
|
|
return 0;
|
|
}
|