[clang] [llvm] CodeGen: Replace TargetOptions::ThreadModel with module flag (PR #223157)
Nick Desaulniers via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 14 09:58:33 PDT 2026
================
@@ -333,7 +335,48 @@ bool AtomicExpandImpl::tryInsertFencesForAtomic(AtomicInst *AtomicI,
return false;
}
+/// In a single-threaded environment, atomic operations can be lowered to their
+/// non-atomic equivalents: fences are removed, and atomic loads, stores, RMW,
+/// and cmpxchg become plain memory operations.
+bool AtomicExpandImpl::lowerToNonAtomic(Instruction *I) {
----------------
nickdesaulniers wrote:
LowerAtomic as in the `createLowerAtomicPass` call removed from llvm/lib/Target/ARM/ARMTargetMachine.cpp below? Are you planning to delete that pass?
https://github.com/llvm/llvm-project/pull/223157
More information about the cfe-commits
mailing list