[PATCH] D94334: [InlineAdvisor] Allow replay of inline decisions for the CGSCC inliner from optimization remarks

Mircea Trofin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 22 13:41:10 PST 2021


mtrofin accepted this revision.
mtrofin added a comment.
This revision is now accepted and ready to land.

Nice! LGTM  (assuming comment in tryCreate is addressed)



================
Comment at: llvm/lib/Analysis/InlineAdvisor.cpp:186
+
   return !!Advisor;
 }
----------------
Probably best to check first if Advisor isn't null before line 180, then not bother making a replay advisor if the underlying one can't be made in the first place (and just return false)


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

https://reviews.llvm.org/D94334



More information about the llvm-commits mailing list