[all-commits] [llvm/llvm-project] 1a2960: [pgo][nfc] Model `Count` as a `std::optional` in `...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Thu Feb 29 15:12:20 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a2960bab6381f2b288328e2371829b460ac020c
      https://github.com/llvm/llvm-project/commit/1a2960bab6381f2b288328e2371829b460ac020c
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2024-02-29 (Thu, 29 Feb 2024)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp

  Log Message:
  -----------
  [pgo][nfc] Model `Count` as a `std::optional` in `PGOUseBBInfo` (#83364)

Simpler code, compared to tracking state of 2 variables and the ambiguity of "0" CountValue (is it 0 or is it invalid?)



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