https://bugs.llvm.org/show_bug.cgi?id=47793
Bug ID: 47793
Summary: Miscompilation of single loop with two assignments
Product: new-bugs
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedb...@nondot.org
Reporter: tuom.lar...@gmail.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org
Created attachment 24044
--> https://bugs.llvm.org/attachment.cgi?id=24044&action=edit
Example
The example shows a discrepancy when processing two arrays at once in single
loop and processing each array in a separate loop. It should not matter whether
one array is processed first or both arrays are processed simultaneously but
the later case gives wrong answer. More precise instructions on how to
reproduce the behaviour could be found in the linked example.
It only happens with clang coming with macOS Catalina (sorry, I don't know
which version it is as Apple apparently uses different version numbers as
llvm.org)
Perhaps the single loop gets optimised too aggressively but I'm really guessing
here.
Please find the example below.
--
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