[PATCH] D97350: [SampleFDO] Another fix to prevent repeated indirect call promotion in sample loader pass

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 3 16:41:13 PST 2021


wenlei added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/SampleProfile.cpp:713
   if (Valid) {
     for (uint32_t I = 0; I < NumVals; I++) {
+      if (ValueData[I].Count == NOMORE_ICP_MAGICNUM) {
----------------
bail out the loop if NumPromoted > MaxNumPromotions?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97350



More information about the llvm-commits mailing list