[PATCH] D33746: [PGO] Dump branch condition type, branch probability and branch hotness as optimization remarks

Dehao Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 09:25:08 PDT 2017


danielcdh accepted this revision.
danielcdh added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/Transforms/Instrumentation/PGOInstrumentation.cpp:222
+  ConstantInt *CV = dyn_cast<ConstantInt>(RHS);
+  if (CV) {
+    if (CV->isZero())
----------------
Why not directly output the const int as a number?


https://reviews.llvm.org/D33746





More information about the llvm-commits mailing list