[llvm] [MemProf] Allow promotion if target is a declaration (PR #115555)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 17:15:09 PST 2024


================
@@ -132,6 +132,11 @@ cl::opt<bool> EnableMemProfContextDisambiguation(
 cl::opt<bool> SupportsHotColdNew(
     "supports-hot-cold-new", cl::init(false), cl::Hidden,
     cl::desc("Linking with hot/cold operator new interfaces"));
+
+cl::opt<bool> MemProfRequireDefinitionForPromotion(
+    "memprof-require-definition-for-promotion", cl::init(false), cl::Hidden,
----------------
snehasish wrote:

Should this flag default to true to preserve the current behaviour (when the flag is not set on the cmd line)?

The commit message also mentioned enabled by default.


https://github.com/llvm/llvm-project/pull/115555


More information about the llvm-commits mailing list