[clang] [compiler-rt] [llvm] [compiler-rt][CSan] Add a minimal value-check configuration (PR #244727)

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 23 12:00:18 PST 2026


================
@@ -442,9 +468,14 @@ bool ConcurrencySanitizer::instrumentLoadOrStore(Instruction *I,
                                                  const DataLayout &DL) {
   const bool IsWrite = isa<StoreInst>(I);
   Value *Addr = getLoadStorePointerOperand(I);
-  if (!insertAccessProbe(I, Addr, getLoadStoreType(I), DL, IsWrite,
-                         /*IsCompound=*/false, /*IsAtomic=*/false))
+  Type *AccessTy = getLoadStoreType(I);
+  if (ClMinimal) {
+    if (!insertTypedValueCheck(I, Addr, AccessTy, DL, IsWrite))
----------------
yxsamliu wrote:

Can minimal mode honor `-csan-distinguish-volatile`? Adding `-csan-minimal` to the existing aligned volatile test produces false race reports.

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


More information about the cfe-commits mailing list