File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -1795,10 +1795,7 @@ struct CounterCoverageMappingBuilder
1795
1795
if (llvm::EnableSingleByteCoverage)
1796
1796
OutCount = getRegionCounter (S);
1797
1797
else {
1798
- LoopCount =
1799
- (ParentCount.isZero ()
1800
- ? ParentCount
1801
- : addCounters (ParentCount, BackedgeCount, BC.ContinueCount ));
1798
+ LoopCount = addCounters (ParentCount, BackedgeCount, BC.ContinueCount );
1802
1799
auto [ExecCount, SkipCount] = getBranchCounterPair (S, LoopCount);
1803
1800
ExitCount = SkipCount;
1804
1801
assert (ExecCount.isZero () || ExecCount == BodyCount);
@@ -1834,9 +1831,7 @@ struct CounterCoverageMappingBuilder
1834
1831
fillGapAreaWithCount (Gap->getBegin (), Gap->getEnd (), BodyCount);
1835
1832
1836
1833
Counter LoopCount =
1837
- (ParentCount.isZero ()
1838
- ? ParentCount
1839
- : addCounters (ParentCount, BackedgeCount, BC.ContinueCount ));
1834
+ addCounters (ParentCount, BackedgeCount, BC.ContinueCount );
1840
1835
auto [ExecCount, ExitCount] = getBranchCounterPair (S, LoopCount);
1841
1836
assert (ExecCount.isZero () || ExecCount == BodyCount);
1842
1837
Counter OutCount = addCounters (BC.BreakCount , ExitCount);
You can’t perform that action at this time.
0 commit comments