[NFC][MLGO] Just use the underlying protobuf object for logging
authorMircea Trofin <mtrofin@google.com>
Thu, 22 Jul 2021 19:45:32 +0000 (12:45 -0700)
committerMircea Trofin <mtrofin@google.com>
Fri, 23 Jul 2021 17:56:48 +0000 (10:56 -0700)
commit55e12f7080df4f2adb43e6aa8151d59e981c724a
treec6d8b272e6de886a0126f883c1ce29227df5f7f4
parentdeebf18512266e0e6917508052f6d9bbd06c7d5e
[NFC][MLGO] Just use the underlying protobuf object for logging

Avoid buffering just to copy the buffered data, in 'development
mode', when logging. Instead, just populate the underlying protobuf.

Differential Revision: https://reviews.llvm.org/D106592
llvm/include/llvm/Analysis/Utils/TFUtils.h
llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp
llvm/lib/Analysis/TFUtils.cpp
llvm/unittests/Analysis/TFUtilsTest.cpp