[PATCH] D15003: Interface to attach maximum function count from PGO to module as module flags.

Easwaran Raman via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 2 11:48:36 PST 2015


eraman added inline comments.

================
Comment at: lib/IR/Module.cpp:502
@@ +501,3 @@
+      cast_or_null<ConstantAsMetadata>(getModuleFlag("MaxFunctionCount"));
+  if (!Val) return None;
+  return cast<ConstantInt>(Val->getValue())->getZExtValue();
----------------
davidxl wrote:
> Format -- put return in a new line.
clang-format suggests I have the return on the same line. 


Repository:
  rL LLVM

http://reviews.llvm.org/D15003





More information about the llvm-commits mailing list