[PATCH] D129841: [GlobalOpt] Enable evaluation of atomic stores

Alexander Shaposhnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 20 01:01:36 PDT 2022


alexander-shaposhnikov added a comment.

@dvyukov 
Normally they don't,
but constructors of c++ globals or functions marked with __attribute__((constructor)) might contain atomic stores
(similarly to the example above https://godbolt.org/z/8WWve37dc or https://godbolt.org/z/qofMfnrof)
(if x is not atomic the output looks like this: https://godbolt.org/z/vKa7zv59E)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129841/new/

https://reviews.llvm.org/D129841



More information about the llvm-commits mailing list