[libc] Disable atomic optimizations for `libc` AMDGPU builds
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 19 Jun 2023 08:25:37 +0000 (03:25 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Mon, 19 Jun 2023 08:25:51 +0000 (03:25 -0500)
commit5a8fc419379faa517e614c55b0b27de59572019d
tree34cd7e61acfff90caee7dab264350b4bd77284bc
parent0eb0fecbc544a0416b70f4450a38dfb27c9b5b9a
[libc] Disable atomic optimizations for `libc` AMDGPU builds

Recently the AMDGPU backend automatically enables a pass to optimize
atomics. This results in the LTO build taking about 10x longer in all
cases. For now we disable this by default as was the case before the
patch in D152649.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D153232
libc/startup/gpu/amdgpu/CMakeLists.txt