[llvm] [MC/DC] Introduce `class TestVector` with a pair of `BitVector` (PR #82174)

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 19 14:13:44 PST 2024


================
@@ -323,22 +318,15 @@ class MCDCRecordProcessor {
       for (unsigned J = 0; J < I; ++J) {
         const MCDCRecord::TestVector &B = ExecVectors[J];
         // Enumerate two execution vectors whose outcomes are different.
-        if (A[NumConditions] == B[NumConditions])
+        if (!A.isDifferentOutcome(B))
           continue;
----------------
chapuni wrote:

This could be eliminated.

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


More information about the llvm-commits mailing list