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: unassignedclangb...@nondot.org
Reporter: hube...@ornl.gov
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs