https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80728
--- Comment #6 from Alexander Monakov <amonakov at gcc dot gnu.org> --- I think a possible approach is to add a new cgraph_node flag (or a multi-bit field, if we want to track presence of acquire/release/seq-cst compiler barriers separately), handle asms and atomics specially in cgraphbuild.c to set that flag, and finally use the new flag in ipa-reference.c?