[llvm-bugs] [Bug 47221] New: Miscompile with collapse(4) on a triangular loop nest
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 18 07:20:41 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47221
Bug ID: 47221
Summary: Miscompile with collapse(4) on a triangular loop nest
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Clang Compiler Support
Assignee: unassignedclangbugs at nondot.org
Reporter: huberjn at ornl.gov
CC: llvm-bugs at lists.llvm.org
Created attachment 23859
--> https://bugs.llvm.org/attachment.cgi?id=23859&action=edit
Makefile and test code used on x86-64 Linux with clang trunk to produce the
error.
The following triangular loop nest miscompiles on trunk when attempting to
collapse the whole loop nest. Device code is not generated causing `undefined
reference to` errors in the device linker.
https://godbolt.org/z/1xv6Eo
Using collapse(3) on the outer loop, the program compiles without errors but
miscompiles and returns incorrect values. Collapsing with < 3 works as expected
as does collapsing on the second loop instead.
--
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/20200818/eb79c148/attachment.html>
More information about the llvm-bugs
mailing list