Skip to content

Commit 6110866

Browse files
committed
RequirementMachine: Propagate requirement IDs only once
1 parent 06a25fa commit 6110866

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AST/RequirementMachine/HomotopyReduction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,6 @@ void RewriteSystem::performHomotopyReduction(
455455

456456
deleteRule(ruleID, replacementPath);
457457
}
458-
459-
propagateRedundantRequirementIDs();
460458
}
461459

462460
/// Use the loops to delete redundant rewrite rules via a series of Tietze
@@ -590,6 +588,8 @@ void RewriteSystem::minimizeRewriteSystem() {
590588
return false;
591589
});
592590

591+
propagateRedundantRequirementIDs();
592+
593593
// Check invariants after homotopy reduction.
594594
verifyRewriteLoops();
595595
verifyRedundantConformances(redundantConformances);

0 commit comments

Comments
 (0)