[llvm] [LoopFusion] Fix NumSunkInsts statistic description (NFC) (PR #201841)

Madhur Amilkanthwar via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 5 06:42:51 PDT 2026


https://github.com/madhur13490 created https://github.com/llvm/llvm-project/pull/201841

The NumSunkInsts counter was described as "Number of hoisted preheader instructions.", a copy of NumHoistedInsts. It counts sunk instructions.

>From dc92fdd4bfb66afc8ba055cce877e6c24874210f Mon Sep 17 00:00:00 2001
From: Madhur Amilkanthwar <madhura at nvidia.com>
Date: Fri, 5 Jun 2026 01:31:30 -0700
Subject: [PATCH] [LoopFusion] Fix NumSunkInsts statistic description (NFC)

The NumSunkInsts counter was described as "Number of hoisted preheader
instructions.", a copy of NumHoistedInsts. It counts sunk instructions.
---
 llvm/lib/Transforms/Scalar/LoopFuse.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Transforms/Scalar/LoopFuse.cpp b/llvm/lib/Transforms/Scalar/LoopFuse.cpp
index 3263d8b40aa83..8062a68afe1f6 100644
--- a/llvm/lib/Transforms/Scalar/LoopFuse.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopFuse.cpp
@@ -94,7 +94,7 @@ STATISTIC(NotRotated, "Candidate is not rotated");
 STATISTIC(OnlySecondCandidateIsGuarded,
           "The second candidate is guarded while the first one is not");
 STATISTIC(NumHoistedInsts, "Number of hoisted preheader instructions.");
-STATISTIC(NumSunkInsts, "Number of hoisted preheader instructions.");
+STATISTIC(NumSunkInsts, "Number of sunk preheader instructions.");
 STATISTIC(NumDA, "DA checks passed");
 
 static cl::opt<unsigned> FusionPeelMaxCount(



More information about the llvm-commits mailing list