Skip to content

Commit ad13691

Browse files
committed
Rewind changes for folding
1 parent fc697f0 commit ad13691

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

clang/lib/CodeGen/CoverageMappingGen.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,10 +1795,7 @@ struct CounterCoverageMappingBuilder
17951795
if (llvm::EnableSingleByteCoverage)
17961796
OutCount = getRegionCounter(S);
17971797
else {
1798-
LoopCount =
1799-
(ParentCount.isZero()
1800-
? ParentCount
1801-
: addCounters(ParentCount, BackedgeCount, BC.ContinueCount));
1798+
LoopCount = addCounters(ParentCount, BackedgeCount, BC.ContinueCount);
18021799
auto [ExecCount, SkipCount] = getBranchCounterPair(S, LoopCount);
18031800
ExitCount = SkipCount;
18041801
assert(ExecCount.isZero() || ExecCount == BodyCount);
@@ -1834,9 +1831,7 @@ struct CounterCoverageMappingBuilder
18341831
fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount);
18351832

18361833
Counter LoopCount =
1837-
(ParentCount.isZero()
1838-
? ParentCount
1839-
: addCounters(ParentCount, BackedgeCount, BC.ContinueCount));
1834+
addCounters(ParentCount, BackedgeCount, BC.ContinueCount);
18401835
auto [ExecCount, ExitCount] = getBranchCounterPair(S, LoopCount);
18411836
assert(ExecCount.isZero() || ExecCount == BodyCount);
18421837
Counter OutCount = addCounters(BC.BreakCount, ExitCount);

0 commit comments

Comments
 (0)