[PATCH] D48105: [llvm][Instrumentation] Add Call Graph Profile pass

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 26 15:36:41 PDT 2018


davidxl added inline comments.


================
Comment at: lib/Transforms/Instrumentation/CGProfile.cpp:66
+        }
+        Function *CalledF = CS.getCalledFunction();
+        if (!CalledF || !TTI.isLoweredToCall(CalledF))
----------------
The lowering check and count update code is shared between indirect and direct calls, so perhaps add a helper lambda function for it?


https://reviews.llvm.org/D48105





More information about the llvm-commits mailing list