| commit | ed9117f88d0f2282b6c994fc3a5f4818c4046e84 | [log] [tgz] |
|---|---|---|
| author | Tim Northover <tnorthover@apple.com> | Tue May 14 11:03:13 2019 +0000 |
| committer | Tim Northover <tnorthover@apple.com> | Tue May 14 11:03:13 2019 +0000 |
| tree | 784e75392344aebfe36d05e21f510b6d6f0e7dd8 | |
| parent | 9df3883618a91832f129213a4637957bf2ba9fa2 [diff] |
GlobalOpt: do not promote globals used atomically to constants. Some atomic loads are implemented as cmpxchg (particularly if large or floating), and that usually requires write access to the memory involved or it will segfault. We can still propagate the constant value to users we understand though. llvm-svn: 360662