[llvm] Changed stat passes to count instructions before and after optimizations (PR #188837)
IƱaki V Arrechea via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 09:00:33 PDT 2026
================
@@ -29,9 +29,16 @@ using namespace llvm;
#define DEBUG_TYPE "func-properties-stats"
-#define FUNCTION_PROPERTY(Name, Description) STATISTIC(Num##Name, Description);
+#define FUNCTION_PROPERTY(Name, Description) \
+ STATISTIC(Num##Name##PreOptimizations, \
+ Description " (before optimizations)"); \
+ STATISTIC(Num##Name, Description " (after " \
----------------
InakiVA wrote:
changing everything that mentions optimizations to keep consistency
https://github.com/llvm/llvm-project/pull/188837
More information about the llvm-commits
mailing list