[PATCH] D99351: [CSSPGO] Top-down processing order based on full profile.

Wei Mi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 29 20:35:08 PDT 2021


wmi added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/SampleProfile.cpp:165
+static cl::opt<bool>
+    UseProfiledCallGraph("use-profiled-call-graph", cl::init(false), cl::Hidden,
+                         cl::desc("Process functions in a top-down order "
----------------
hoy wrote:
> wmi wrote:
> > Emit an error to prevent misuse if ProfileTopDownLoad is false and UseProfiledCallGraph is true?
> Actually when ProfileTopDownLoad is false, UseProfiledCallGraph doesn't do anything since it'll return early in `buildProfiledCallGraph`. Do you think an error is needed when it returns early while UseProfiledCallGraph is true?
Silently ignoring this flag may cause confusion. A warning may be enough. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99351/new/

https://reviews.llvm.org/D99351



More information about the llvm-commits mailing list