[llvm] [msan] Add optional flag to improve instrumentation of disjoint OR (PR #145990)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 27 00:03:40 PDT 2025


================
@@ -282,6 +282,12 @@ static cl::opt<bool> ClPoisonUndefVectors(
              "unaffected by this flag (see -msan-poison-undef)."),
     cl::Hidden, cl::init(false));
 
+static cl::opt<bool> ClPreciseDisjointOr(
----------------
thurstond wrote:

It fixes a false negative, hence some existing tests that currently pass will start failing when the flag is turned on. Having the flag allows users to:
- turn the flag on, to preemptively identify and fix such issues while the flag is still defaulted off
- have an escape hatch for when the flag is eventually defaulted on in a future patch

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


More information about the llvm-commits mailing list