[llvm-bugs] [Bug 41140] New: [MemorySSA] wrong code
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Mar 19 08:07:14 PDT 2019
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: unassignedbugs at nondot.org
Reporter: paulsson at linux.vnet.ibm.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190319/2064d582/attachment.html>
More information about the llvm-bugs
mailing list