@@ -870,12 +870,6 @@ namespace driver {
870870 // / Figure out the best strategy and return those jobs. May return
871871 // / duplicates.
872872 CommandSet computeFirstRoundCompileJobsForIncrementalCompilation () {
873- return computeDependenciesAndGetNeededCompileJobs ();
874- }
875-
876- // / Return jobs to run if using dependencies, may include duplicates.
877- CommandSet
878- computeDependenciesAndGetNeededCompileJobs () {
879873 auto getEveryCompileJob = [&] {
880874 CommandSet everyIncrementalJob;
881875 for (const Job *Cmd : Comp.getJobs ()) {
@@ -939,20 +933,11 @@ namespace driver {
939933 return jobsToSchedule;
940934 }
941935
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
951937 // / 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.
953939 Optional<std::pair<bool , bool >>
954- isCompileJobInitiallyNeededForDependencyBasedIncrementalCompilation (
955- const Job *Cmd) {
940+ computeShouldInitiallyScheduleJobAndDependendents (const Job *Cmd) {
956941 auto CondAndHasDepsIfNoError =
957942 loadDependenciesAndComputeCondition (Cmd);
958943 if (!CondAndHasDepsIfNoError)
@@ -1572,13 +1557,12 @@ namespace driver {
15721557 // / When the driver next runs, the condition will be filtered through
15731558 // / \c loadDependenciesAndComputeCondition .
15741559 // / 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
15821566 // / scheduled.) If the job succeeds, the revised dependencies are consulted
15831567 // / to schedule any needed jobs.
15841568
0 commit comments