[PATCH] D29040: Explicitly promote indirect calls before sample profile annotation.

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 30 17:02:57 PST 2017

davidxl added inline comments.

Comment at: lib/Transforms/IPO/SampleProfile.cpp:656
+            findCalleeFunctionSamples(*I)->getName());
+        if (CalledFunction && isLegalToPromote(I, CalledFunction, nullptr)) {
+          // The indirect target was promoted and inlined in the profile, as a
better to return the failed reason and emit debug output.


More information about the llvm-commits mailing list