[llvm] [TableGen][RISCV] Generate pre/post-RA statistics for macro fusions (PR #209394)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 14 08:52:26 PDT 2026
================
@@ -107,6 +107,12 @@ class Fusion<string name, string fieldName, string desc, list<FusionPredicate> p
: SubtargetFeature<"fusion-" # name, fieldName, "true", desc> {
list<FusionPredicate> Predicates = predicates;
bit IsCommutable = 0;
+
+ // When true, the MacroFusionPredicatorEmitter generates `Statistic`s that
+ // count how often this fusion is matched (see the
+ // `GET_<TargetName>_MACRO_FUSION_STATISTICS` section of the generated file).
+ // Set this to 0 to opt out, for fusions whose statistics are not interesting.
+ bit GenerateStatistic = 1;
----------------
topperc wrote:
`true`
https://github.com/llvm/llvm-project/pull/209394
More information about the llvm-commits
mailing list