Tobin Bakertobinbaker@discuss.systems
Jun 26, 2026, 9:52 PMSo I'm trying to figure out if there's a UB-free way to do SIMD loads over an array of `std::atomic<uint64_t>` (all writes are via CAS, this is a concurrent bitmap). From what I can tell either placing `atomic_thread_fence(mo_acq)` before the SIMD load or just marking the SIMD type `volatile` should work? Not sure if the codegen will be equivalent tho, esp. at higher optimization levels. Before I head off to godbolt, is this a doomed quest?
@regehr @pkhuong @steve