diff --git a/xla/service/copy_insertion.cc b/xla/service/copy_insertion.cc index 6e2fc858d0958..39eafb7886717 100644 --- a/xla/service/copy_insertion.cc +++ b/xla/service/copy_insertion.cc @@ -2293,8 +2293,6 @@ absl::Status CopyInsertion::RemoveUnnecessaryCopies( } } - std::unique_ptr call_graph = CallGraph::Build(module); - int64_t num_existing_copies = GetNumExistingCopies(module, execution_threads); bool changed = true; int64_t num_iterations = -1;