[all-commits] [llvm/llvm-project] 8c33b3: [PGO] Add a unit test for the PGOInstrumentationGe...

Pavel Samolysov via All-commits all-commits at lists.llvm.org
Wed May 29 19:51:50 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c33b3380b8044824f6adb48cc8d2076aecae566
      https://github.com/llvm/llvm-project/commit/8c33b3380b8044824f6adb48cc8d2076aecae566
  Author: Pavel Samolysov <samolisov at gmail.com>
  Date:   2024-05-30 (Thu, 30 May 2024)

  Changed paths:
    M llvm/unittests/Transforms/CMakeLists.txt
    A llvm/unittests/Transforms/Instrumentation/CMakeLists.txt
    A llvm/unittests/Transforms/Instrumentation/PGOInstrumentationTest.cpp

  Log Message:
  -----------
  [PGO] Add a unit test for the PGOInstrumentationGen pass (#93636)

The patch introduces the gmock-based unittest infrastructure for PGO
Instrumentation and adds some test cases to check whether the
instrumentation has taken place. The testing infrastructure for analysis
modules was borrowed from the LoopPassManagerTest unittest and
simplified a bit to handle module analysis passes only. Actually, we are
testing whether the result of a trivial analysis pass was invalidated by
the PGOInstrumentGen one: we exploit the fact the pass invalidates all
the analysis results after a module was instrumented.

NFC.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list