[all-commits] [llvm/llvm-project] fa3b58: [llvm]NFC] Simplify ProfileSummaryInfo state trans...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Wed May 27 11:59:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fa3b587196dbc04e445257ae38e7906e5c0c4888
      https://github.com/llvm/llvm-project/commit/fa3b587196dbc04e445257ae38e7906e5c0c4888
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2020-05-27 (Wed, 27 May 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/ProfileSummaryInfo.h
    M llvm/lib/Analysis/ProfileSummaryInfo.cpp
    M llvm/lib/Transforms/IPO/SampleProfile.cpp
    M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp

  Log Message:
  -----------
  [llvm]NFC] Simplify ProfileSummaryInfo state transitions

ProfileSummaryInfo is updated seldom, as result of very specific
triggers. This patch clearly demarcates state updates from read-only uses.
This, arguably, improves readability and maintainability.




More information about the All-commits mailing list