https://bugs.llvm.org/show_bug.cgi?id=46210
Bug ID: 46210
Summary: GVN hoists over "synchronizing" call with
`inaccessiblemem_only" attribute
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Created attachment 23582
--> https://bugs.llvm.org/attachment.cgi?id=23582&action=edit
positive and negative test case
The attached test mimics a "critical region" (see PR45854) with an update
inside.
In both cases the calls surrounding the load+store pair are annotated with
inaccessiblememonly. However, only in the case the call is marked `nosync` it
is sound for GVN to hoist the load out of the loop. Basically, the call might
be a barrier to prevent races, wait for a signal indicating the global was
initialized, ...
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs