@@ -870,12 +870,6 @@ namespace driver {
870
870
// / Figure out the best strategy and return those jobs. May return
871
871
// / duplicates.
872
872
CommandSet computeFirstRoundCompileJobsForIncrementalCompilation () {
873
- return computeDependenciesAndGetNeededCompileJobs ();
874
- }
875
-
876
- // / Return jobs to run if using dependencies, may include duplicates.
877
- CommandSet
878
- computeDependenciesAndGetNeededCompileJobs () {
879
873
auto getEveryCompileJob = [&] {
880
874
CommandSet everyIncrementalJob;
881
875
for (const Job *Cmd : Comp.getJobs ()) {
@@ -939,20 +933,11 @@ namespace driver {
939
933
return jobsToSchedule;
940
934
}
941
935
942
- // / If error return None, else return if this (compile) job should be
943
- // / scheduled, and if its dependents should be.
944
- Optional<std::pair<bool , bool >>
945
- computeShouldInitiallyScheduleJobAndDependendents (const Job *cmd) {
946
- return isCompileJobInitiallyNeededForDependencyBasedIncrementalCompilation (
947
- cmd);
948
- }
949
-
950
- // / Return whether job should be scheduled when using dependencies, and if
936
+ // / Return whether \p Cmd should be scheduled when using dependencies, and if
951
937
// / the job is cascading. Or if there was a dependency-read error, return
952
- // / None to indicate don't-know.
938
+ // / \c None to indicate don't-know.
953
939
Optional<std::pair<bool , bool >>
954
- isCompileJobInitiallyNeededForDependencyBasedIncrementalCompilation (
955
- const Job *Cmd) {
940
+ computeShouldInitiallyScheduleJobAndDependendents (const Job *Cmd) {
956
941
auto CondAndHasDepsIfNoError =
957
942
loadDependenciesAndComputeCondition (Cmd);
958
943
if (!CondAndHasDepsIfNoError)
@@ -1572,13 +1557,12 @@ namespace driver {
1572
1557
// / When the driver next runs, the condition will be filtered through
1573
1558
// / \c loadDependenciesAndComputeCondition .
1574
1559
// / Then, the cascading predicate is returned from
1575
- // / \c isCompileJobInitiallyNeededForDependencyBasedIncrementalCompilation
1576
- // / and \c computeShouldInitiallyScheduleJobAndDependendents Then, in \c
1577
- // / computeDependenciesAndGetNeededCompileJobs if the job needs a cascading
1578
- // / build, it's dependents will be scheduled immediately.
1579
- // / After the job finishes, it's dependencies will be processed again.
1580
- // / If a non-cascading job failed, the driver will schedule all of its
1581
- // / dependents. (All of its dependents are assumed to have already been
1560
+ // / \c isCompileJobInitiallyNeededForDependencyBasedIncrementalCompilation.
1561
+ // / Then, in \c computeShouldInitiallyScheduleJobAndDependendents
1562
+ // / if the job needs a cascading build, it's dependents will be scheduled
1563
+ // / immediately. After the job finishes, it's dependencies will be processed
1564
+ // / again. If a non-cascading job failed, the driver will schedule all of
1565
+ // / its dependents. (All of its dependents are assumed to have already been
1582
1566
// / scheduled.) If the job succeeds, the revised dependencies are consulted
1583
1567
// / to schedule any needed jobs.
1584
1568
0 commit comments