[PATCH] D79920: [llvm][NFC] Simplify ProfileSummaryInfo state transitions.

Mircea Trofin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 13 20:43:41 PDT 2020


mtrofin created this revision.
mtrofin added reviewers: tejohnson, wmi, davidxl, xur, dblaikie.
Herald added subscribers: llvm-commits, hiraditya, eraman.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79920

Files:
  llvm/include/llvm/Analysis/ProfileSummaryInfo.h
  llvm/lib/Analysis/ProfileSummaryInfo.cpp
  llvm/lib/Transforms/IPO/SampleProfile.cpp
  llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79920.263910.patch
Type: text/x-patch
Size: 24286 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200514/a21f144b/attachment.bin>


More information about the llvm-commits mailing list