[llvm] [LoopFusion] Emit optimization remarks regardless of statistics (PR #202012)
Madhur Amilkanthwar via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 10 02:27:04 PDT 2026
================
@@ -69,35 +69,42 @@ using namespace llvm;
#define DEBUG_TYPE "loop-fusion"
-STATISTIC(FuseCounter, "Loops fused");
+ALWAYS_ENABLED_STATISTIC(FuseCounter, "Loops fused");
STATISTIC(NumFusionCandidates, "Number of candidates for loop fusion");
STATISTIC(InvalidLoopStructure, "Loop has invalid structure");
-STATISTIC(AddressTakenBB, "Basic block has address taken");
-STATISTIC(MayThrowException, "Loop may throw an exception");
-STATISTIC(ContainsVolatileAccess, "Loop contains a volatile access");
-STATISTIC(ContainsAtomicAccess, "Loop contains an atomic access");
-STATISTIC(NotSimplifiedForm, "Loop is not in simplified form");
-STATISTIC(InvalidDependencies, "Dependencies prevent fusion");
-STATISTIC(UnknownTripCount, "Loop has unknown trip count");
+ALWAYS_ENABLED_STATISTIC(AddressTakenBB, "Basic block has address taken");
+ALWAYS_ENABLED_STATISTIC(MayThrowException, "Loop may throw an exception");
----------------
madhur13490 wrote:
Sure, I did think about this before posting the patch but the use ALWAYS_ENABLED_STATISTIC was tempting. Please have a look
https://github.com/llvm/llvm-project/pull/202012
More information about the llvm-commits
mailing list