[all-commits] [llvm/llvm-project] 186dcd: [instrprof][NFC] Refactor out the common logic for...

Snehasish Kumar via All-commits all-commits at lists.llvm.org
Mon Jan 31 15:16:02 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 186dcd4aab77f45552252a3b17cd16a6d8b32233
      https://github.com/llvm/llvm-project/commit/186dcd4aab77f45552252a3b17cd16a6d8b32233
  Author: Snehasish Kumar <snehasishk at google.com>
  Date:   2022-01-31 (Mon, 31 Jan 2022)

  Changed paths:
    M llvm/include/llvm/ProfileData/InstrProfReader.h
    M llvm/lib/ProfileData/InstrProfReader.cpp

  Log Message:
  -----------
  [instrprof][NFC] Refactor out the common logic for getProfileKind.

The logic for getProfileKind for RawInstrProfReader and
InstrProfReaderIndex is similar. To avoid duplication, move the logic
from the header to InstrProfReader.cpp and introduce a static method
which implements the common code.

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




More information about the All-commits mailing list