[all-commits] [llvm/llvm-project] 228678: [clang][CoverageMapping] Refactor setting MC/DC Tr...

Alan Phipps via All-commits all-commits at lists.llvm.org
Thu Jan 18 07:35:04 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 22867890e4e6e272ddb9cee78e3eb0a2bca1cc81
      https://github.com/llvm/llvm-project/commit/22867890e4e6e272ddb9cee78e3eb0a2bca1cc81
  Author: Alan Phipps <a-phipps at ti.com>
  Date:   2024-01-18 (Thu, 18 Jan 2024)

  Changed paths:
    M clang/lib/CodeGen/CoverageMappingGen.cpp
    M clang/test/CoverageMapping/mcdc-logical-stmt-ids-all.cpp

  Log Message:
  -----------
  [clang][CoverageMapping] Refactor setting MC/DC True/False Condition IDs (#78202)

Clean-up of the algorithm that assigns MC/DC True/False control-flow
condition IDs when constructing an MC/DC decision region. This patch
creates a common API for setting/getting the condition IDs, making the
binary logical operator visitor functions much cleaner.

This patch also fixes issue
https://github.com/llvm/llvm-project/issues/77873 in which a record's
control flow map can be malformed due to an incorrect calculation of the
True/False condition IDs.




More information about the All-commits mailing list