Skip to content

Commit cc833d9

Browse files
committed
RequirementMachine: Record loops from trivially-resolved critical pairs
1 parent 1429dbe commit cc833d9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/AST/RequirementMachine/RewriteSystemCompletion.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,13 @@ RewriteSystem::computeConfluentCompletion(unsigned maxIterations,
618618
again = true;
619619
}
620620

621+
for (const auto &loop : resolvedLoops) {
622+
recordHomotopyGenerator(loop);
623+
}
624+
621625
resolvedCriticalPairs.clear();
622626
resolvedPaths.clear();
627+
resolvedLoops.clear();
623628

624629
// If the added rules merged any associated types, process the merges now
625630
// before we continue with the completion procedure. This is important

0 commit comments

Comments
 (0)