message: Cherry picking bug fix from upstream
  Summary:
  This is a cherry pick of from upstream.
  Ref T35627
  Test Plan: CI.
  Reviewers: #tensorflow, simonl, #framework_ip_review_-_any_oss_or_third-party_code_use_has_been_approved, georgep
  Maniphest Tasks: T35627
diff: @@ -2975,8 +2975,8 @@ static Status PostOrderDFS(HloInstruction* root, Visitor* visitor,
  visitor->GetVisitState(current_id);
  if (visit_state == Visitor::kVisited) {
  dfs_stack.pop_back();
  - VLOG(3) << "Not visiting HLO %" << current_node->name()
  - << " as it was already visited.";
  + VLOG(3) << "Not visiting HLO (id = " << current_id
  + << ") as it was already visited.";
  continue;
  }
  