Skip to content

Commit 0af09d3

Browse files
committed
Revert "[ConstraintSystem] Add a way to get the elapsed time we've spent in a SolverScope."
This reverts commit 656952a.
1 parent fa9a245 commit 0af09d3

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

lib/Sema/CSSolver.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,6 @@ ConstraintSystem::SolverScope::SolverScope(ConstraintSystem &cs)
484484
numDefaultedConstraints = cs.DefaultedConstraints.size();
485485
numCheckedConformances = cs.CheckedConformances.size();
486486
PreviousScore = cs.CurrentScore;
487-
if (cs.Timer) {
488-
startTime = cs.Timer->getElapsedProcessTimeInFractionalSeconds();
489-
}
490487

491488
cs.solverState->registerScope(this);
492489
assert(!cs.failedConstraint && "Unexpected failed constraint!");

lib/Sema/ConstraintSystem.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,9 +1453,6 @@ class ConstraintSystem {
14531453
/// The scope number of this scope. Set when the scope is registered.
14541454
unsigned scopeNumber = 0;
14551455

1456-
/// Time in fractional seconds at which we entered this scope.
1457-
double startTime;
1458-
14591456
/// Constraint graph scope associated with this solver scope.
14601457
ConstraintGraphScope CGScope;
14611458

@@ -1467,13 +1464,6 @@ class ConstraintSystem {
14671464
public:
14681465
explicit SolverScope(ConstraintSystem &cs);
14691466
~SolverScope();
1470-
1471-
Optional<double> getElapsedTimeInFractionalSeconds() {
1472-
if (!cs.Timer)
1473-
return None;
1474-
1475-
return cs.Timer->getElapsedProcessTimeInFractionalSeconds() - startTime;
1476-
}
14771467
};
14781468

14791469
ConstraintSystem(TypeChecker &tc, DeclContext *dc,

0 commit comments

Comments
 (0)