[PATCH] D56764: handle invokes like calls for sample profile data

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 16 12:17:28 PST 2019


vsk added inline comments.


================
Comment at: lib/Transforms/IPO/SampleProfile.cpp:664
+    if (Function *Callee = II->getCalledFunction())
+      CalleeName = Callee->getName();
   return FS->findFunctionSamplesAt(LineLocation(FunctionSamples::getOffset(DIL),
----------------
`CallSite(&Inst).getCalledFunction()` might be easier to read here.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D56764





More information about the llvm-commits mailing list