[GlobalOpt] Enable evaluation of atomic stores
authorAlexander Shaposhnikov <ashaposhnikov@google.com>
Wed, 20 Jul 2022 22:29:03 +0000 (22:29 +0000)
committerAlexander Shaposhnikov <ashaposhnikov@google.com>
Wed, 20 Jul 2022 22:33:58 +0000 (22:33 +0000)
commit67f1fe8597817f9630c84d77ca23852e362e62d6
tree1de384d5f40b014cee112e1652bd8c6c748c1530
parent0174f5553e9ceba19828b097161c02771cd2d8da
[GlobalOpt] Enable evaluation of atomic stores

Relax the check to allow evaluation of atomic stores
(but still skip volatile stores).

Test plan:
1/ ninja check-llvm check-clang
2/ Bootstrapped LLVM/Clang pass tests

Differential revision: https://reviews.llvm.org/D129841
llvm/lib/Transforms/Utils/Evaluator.cpp
llvm/test/Transforms/GlobalOpt/ctor-list-opt.ll