[clang] [lld] [llvm] Adding Matching and Inference Functionality to Propeller (PR #139008)
Rahman Lavaee via cfe-commits
cfe-commits at lists.llvm.org
Fri May 23 12:03:36 PDT 2025
================
@@ -1688,6 +1688,11 @@ def fprofile_sample_accurate : Flag<["-"], "fprofile-sample-accurate">,
as cold. Otherwise, treat callsites without profile samples as if
we have no profile}]>,
MarshallingInfoFlag<CodeGenOpts<"ProfileSampleAccurate">>;
+def fpropeller_profile_use_EQ : Joined<["-"], "fpropeller-profile-use=">,
+ Group<f_Group>, Visibility<[ClangOption, CC1Option, CLOption]>,
+ MetaVarName<"<pathname>">,
----------------
rlavaee wrote:
We don't need the new flag. The CFG edge profile is already being written to the basic-block-sections profile (https://github.com/google/llvm-propeller/blob/main/propeller/testdata/sample_verbose_cc_directives.golden.txt), as a comment which is [currently ignored](https://llvm.org/doxygen/BasicBlockSectionsProfileReader_8h_source.html#l00079) by the compiler. We can introduce the CFG profile under a [new specifier](https://llvm.org/doxygen/BasicBlockSectionsProfileReader_8cpp_source.html#l00155)
https://github.com/llvm/llvm-project/pull/139008
More information about the cfe-commits
mailing list