[PATCH] D104810: [Inline] prevent inlining on noprofile mismatch

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 28 12:54:33 PDT 2021


MaskRay added inline comments.


================
Comment at: llvm/docs/LangRef.rst:1662
+    coverage or profile based optimization, from being added to a function.  A
+    function with the ``noprofile`` attribute but without the ``alwaysinline``
+    attribute cannot be inlined into a function without a ``noprofile``
----------------
My only problem is with (too strong) guarantee. I think we can only say the instructions will not instrumentation even inlined.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104810



More information about the llvm-commits mailing list