[all-commits] [llvm/llvm-project] 2743b3: [nfc][InstrProfTest]Add a test fixture to paramete...

Mingming Liu via All-commits all-commits at lists.llvm.org
Tue Nov 21 14:07:02 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2743b30e2a0c8ff80ed07d6da405340f3333302d
      https://github.com/llvm/llvm-project/commit/2743b30e2a0c8ff80ed07d6da405340f3333302d
  Author: Mingming Liu <mingmingl at google.com>
  Date:   2023-11-21 (Tue, 21 Nov 2023)

  Changed paths:
    M llvm/unittests/ProfileData/InstrProfTest.cpp

  Log Message:
  -----------
  [nfc][InstrProfTest]Add a test fixture to parameterize the read-write test of value profiles (#73038)

This patch factor out the common code among three similar test cases.
The input data and test logic are pretty similar. Parameterize the
differences (prof-weight and endianness) as advised in
https://github.com/llvm/llvm-project/pull/72611.
- Remove duplicated tests




More information about the All-commits mailing list