[all-commits] [llvm/llvm-project] c597dc: [nfc][InstrProfTest]Factor out common code for val...

Mingming Liu via All-commits all-commits at lists.llvm.org
Mon Nov 20 14:53:46 PST 2023


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

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

  Log Message:
  -----------
  [nfc][InstrProfTest]Factor out common code for value profile test (#72611)

Three existing test cases {get_icall_data_read_write, get_icall_data_read_write_with_weight,get_icall_data_read_write_big_endian} have common test data and testing
logic. Extract common code into `testICallDataReadWrite`.
- Add helper function `addValueProfData` and `testValueDataArray`. This two helper functions are used by `testICallDataReadWrite`, and possibly other test cases.




More information about the All-commits mailing list