[clang] [compiler-rt] [llvm] [InstrProf][Driver] Make InstrProfiling behave with TSan (PR #230582)

Dan Blackwell via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 3 14:47:09 PST 2026


DanBlackwell wrote:

> @DanBlackwell Atomic counters by default under TSan make sense. When a user explicitly asks for `-fprofile-update=single`, could we warn that their choice is being overridden, document that behavior, and add a test for this combination?

I've added a driver warning and test for this now. I've had to poke a hole around GCOV for now, as that does not do the atomic counter updates (this PR is getting fat, so imo that should be a followup if it is to be done).

https://github.com/llvm/llvm-project/pull/230582


More information about the cfe-commits mailing list