[all-commits] [llvm/llvm-project] 55e2d2: [MLGO] Use binary protobufs for improved training ...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Mon Jul 19 13:59:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 55e2d2060a367a293710f44fd61a03d797d4aade
      https://github.com/llvm/llvm-project/commit/55e2d2060a367a293710f44fd61a03d797d4aade
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2021-07-19 (Mon, 19 Jul 2021)

  Changed paths:
    M llvm/CMakeLists.txt
    M llvm/lib/Analysis/CMakeLists.txt
    M llvm/lib/Analysis/TFUtils.cpp
    M llvm/test/Transforms/Inline/ML/bounds-checks-rewards.ll
    M llvm/test/Transforms/Inline/ML/development-training-log.ll
    M llvm/unittests/Analysis/TFUtilsTest.cpp

  Log Message:
  -----------
  [MLGO] Use binary protobufs for improved training performance.

It turns out that during training, the time required to parse the
textual protobuf of a training log is about the same as the time it
takes to compile the module generating that log. Using binary protobufs
instead elides that cost almost completely.

Differential Revision: https://reviews.llvm.org/D106157




More information about the All-commits mailing list