[PATCH] D16016: [PGO] IR level instrumentation of indirect call value profiling

Betul Buyukkurt via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 15 14:23:37 PST 2016


betulb added inline comments.

================
Comment at: lib/Transforms/Instrumentation/PGOInstrumentation.cpp:345
@@ +344,3 @@
+
+  if (DisableValueProfiling) return;
+
----------------
The return should be on its own line. clang-format.

================
Comment at: lib/Transforms/Instrumentation/PGOInstrumentation.cpp:318
@@ +317,3 @@
+// Visitor class that finds all indirect call sites.
+struct GetIndirectCallVisitor : public InstVisitor<GetIndirectCallVisitor> {
+  std::vector<CallInst *> IndirectCallInsts;
----------------
I do not like the variables to have names like "Get....". IndirectCallSiteVisitor would have been more appropriate.


http://reviews.llvm.org/D16016





More information about the llvm-commits mailing list