https://bugs.llvm.org/show_bug.cgi?id=41140
Bug ID: 41140
Summary: [MemorySSA] wrong code
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Global Analyses
Assignee: unassignedb...@nondot.org
Reporter: pauls...@linux.vnet.ibm.com
CC: llvm-bugs@lists.llvm.org
Created attachment 21630
--> https://bugs.llvm.org/attachment.cgi?id=21630&action=edit
reduced test case
gcc -O3 -march=z13 ./wrong0.i -o a.out -w ; ./a.out
checksum = 2
gcc -O0 -march=z13 ./wrong0.i -o a.out -w ; ./a.out
checksum = 2
bin/clang -O3 -march=z13 ./wrong0.i -o a.out -w ; ./a.out
checksum = 2
bin/clang -O3 -march=z13 ./wrong0.i -o a.out -w -mllvm
-enable-mssa-loop-dependency; ./a.out
checksum = 0
a, f;
*b = &a;
*volatile *c = &b;
static **d = &b;
short e;
main() {
for (; e <= 1; e++) {
**c = 2;
*d = &f;
}
printf("checksum = %X\n", a);
}
(also attached)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs