Skip to content

Commit 0602a2e

Browse files
committed
RequirementMachine: Simplify right hand sides on each iteration of completion
1 parent 0766c1c commit 0602a2e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/AST/RequirementMachine/RequirementMachine.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,6 @@ void RequirementMachine::computeCompletion() {
389389

390390
checkCompletionResult();
391391

392-
// Simplify right hand sides in preparation for building the
393-
// property map.
394-
System.simplifyRewriteSystem();
395-
396392
// Check invariants.
397393
System.verify();
398394

lib/AST/RequirementMachine/RewriteSystemCompletion.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,8 @@ RewriteSystem::computeConfluentCompletion(unsigned maxIterations,
431431
}
432432
}
433433

434+
simplifyRewriteSystem();
435+
434436
again = false;
435437
for (const auto &pair : resolvedCriticalPairs) {
436438
// Check if we've already done too much work.

0 commit comments

Comments
 (0)