llvm-project/llvm/test/Analysis/GlobalsModRef
Johannes Doerfert 9dc7da3f9c [GlobalsModRef][FIX] Ensure we honor synchronizing effects of intrinsics
This is a long standing problem that resurfaces once in a while [0].
There might actually be two problems because I'm not 100% sure if the
issue underlying https://reviews.llvm.org/D115302 would be solved by
this or not. Anyway.

In 2008 we thought intrinsics do not read/write globals passed to them:
d4133ac315
This is not correct given that intrinsics can synchronize threads and
cause effects to effectively become visible.

NOTE: I did not yet modify any tests but only tried out the reproducer
      of https://github.com/llvm/llvm-project/issues/54851.

Fixes: https://github.com/llvm/llvm-project/issues/54851

[0] https://discourse.llvm.org/t/bug-gvn-memdep-bug-in-the-presence-of-intrinsics/59402

Differential Revision: https://reviews.llvm.org/D123531
2022-04-12 16:42:50 -05:00
..
2008-09-03-ReadGlobals.ll
addrspacecast.ll [AAEval] Make compatible with opaque pointers 2022-03-16 10:02:11 +01:00
aliastest.ll
atomic-instrs.ll
chaining-analysis.ll
comdat-ipo.ll
dead-uses.ll
func-memattributes.ll
functions_without_nosync.ll [GlobalsModRef][FIX] Ensure we honor synchronizing effects of intrinsics 2022-04-12 16:42:50 -05:00
global-used-by-global.ll
inaccessiblememonly.ll
indirect-global.ll [TLI] Check that malloc argument has type size_t 2022-03-14 17:22:24 +01:00
intrinsic_addressnottaken1.ll [GlobalsModRef][FIX] Ensure we honor synchronizing effects of intrinsics 2022-04-12 16:42:50 -05:00
intrinsic_addressnottaken2.ll [GlobalsModRef][FIX] Ensure we honor synchronizing effects of intrinsics 2022-04-12 16:42:50 -05:00
intrinsic_addresstaken.ll [GlobalsModRef][FIX] Ensure we honor synchronizing effects of intrinsics 2022-04-12 16:42:50 -05:00
memset-escape.ll
modreftest.ll
no-escape.ll
nonescaping-noalias.ll [test] Modify some tests to remove implicit -basic-aa in legacy PM RUN lines 2022-03-08 14:35:06 -08:00
nosync_nocallback.ll [GlobalsModRef][FIX] Ensure we honor synchronizing effects of intrinsics 2022-04-12 16:42:50 -05:00
pr12351.ll
pr25309.ll [test] Modify some tests to remove implicit -basic-aa in legacy PM RUN lines 2022-03-08 14:35:06 -08:00
pr35899-dbg-value.ll
purecse.ll
volatile-instrs.ll
weak-interposition.ll