[clang] [llvm] [MC/DC][Coverage] Loosen the limit of NumConds from 6 (PR #82448)

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 20 20:07:51 PST 2024


================
@@ -983,7 +979,7 @@ void CodeGenPGO::mapRegionCounters(const Decl *D) {
   // for most embedded applications. Setting a maximum value prevents the
   // bitmap footprint from growing too large without the user's knowledge. In
   // the future, this value could be adjusted with a command-line option.
-  unsigned MCDCMaxConditions = (CGM.getCodeGenOpts().MCDCCoverage) ? 6 : 0;
+  unsigned MCDCMaxConditions = (CGM.getCodeGenOpts().MCDCCoverage) ? 32767 : 0;
----------------
chapuni wrote:

`MaxCond` is one of options. I guess it could be configurable just for theirs coding rules, since I think controlling `MaxCond` would not make sense.
I know we have to introduce other options as well. I will do later.
* `MaxCond`
* `MaxTVs` to restrict per-expression number of TVs
* "Max bytes of bitmap in the CU" to restict inter-function size of the bitmap.

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


More information about the cfe-commits mailing list