[PATCH] D54175: [PGO] context sensitive PGO

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 3 11:45:37 PST 2018


tejohnson added a comment.

In D54175#1317088 <https://reviews.llvm.org/D54175#1317088>, @xur wrote:

> Integrated with Teresa's review comments.
>
> I will add tests in a later patch.


I really think that tests for gold and for LTO should be added with this patch, since it is adding the functionality for those.



================
Comment at: lib/LTO/LTOBackend.cpp:284
   PMB.PGOSampleUse = Conf.SampleProfile;
+  PMB.EnablePGOCSInstrGen = Conf.RunCSIRInstr;
+  if (!Conf.CSIRProfile.empty()) {
----------------
Is it deliberate that here in the old PM the RunCSIRInstr and CSIRProfile are handled regardless of whether SampleProfile is set, whereas in the new PM they are only handled when SampleProfile is not set? What should be the behavior if sample profile is specified along with CS profiling?


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

https://reviews.llvm.org/D54175





More information about the llvm-commits mailing list