http://llvm.org/bugs/show_bug.cgi?id=22801
Bug ID: 22801
Summary: CFL-AA doesn't understand internal global values
properly
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Global Analyses
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
In the following code:
static int g_1 = 0;
int f3(int n, int * a) {
int i;
for (i = 0; i < n; ++i) {
g_1 += a[i];
}
return g_1;
}
We know g_1 is internal and does not escape, therefore it cannot alias with
a[i]. CFL cannot currently work this out.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs