Displaying 1 result from an estimated 1 matches for "b6157604".
2017 Apr 26
1
Function LICM for readonly, nocapture functions
Hey all,
I was doing some investigation of LICM and I ran into something that seems
a bit odd to me.
Suppose I was looking at the following code snippet:
#define N 1000
int main() {
int B[N];
char A[N];
for(int i=0; i<N; i++) {
B[i] = strlen(A);
}
return B[0]+B[N-1];
}
Among other optimizations that I may want to happen, I'd hope that the call
to strlen could be