       switch (removeInputFromInvocation, removeSwiftDepsFile) {
       case (false, false):
         readGraphAndSkipAll("main", "other", removedInput)
-      case
-        (true, false),
-        (true, true):
+      case (true, false):
+        disabledForRemoval(removedInput)
+        findingBatchingCompiling("main", "other")
+        linking
+      case (true, true):
         disabledForRemoval(removedInput)
         findingBatchingCompiling("main", "other")
         linking

      disablingIncrementalCannotReadBuildRecord
      createdGraphFromSwiftdeps
      findingBatchingCompiling("main", "other")
      schedLinking
    }
  }

      extraArguments: extraArguments,
      whenAutolinking: autolinkLifecycleExpectedDiags
    ) {
      if !removeInputFromInvocation || afterRestoringBadPriors {
        readGraph
      }
      else {
        reading(deps: inputs)
        createdGraphFromSwiftdeps
      }
      enablingCrossModule

      if !removedFileDependsOnChangedFile {
