[llvm] Comment fix in UnrollingPreferences. (PR #177880)

Jonas Paulsson via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 25 13:23:51 PST 2026


https://github.com/JonPsson1 created https://github.com/llvm/llvm-project/pull/177880

It seems this comment became slightly mis-formulated..?

@rampitec @fhahn @alex-t 

>From e92bb4fc7891c9694441f0099acfd4c37da375c2 Mon Sep 17 00:00:00 2001
From: Jonas Paulsson <Jonas.Paulsson2 at ibm.com>
Date: Sun, 25 Jan 2026 15:18:33 -0600
Subject: [PATCH] Comment fix.

---
 llvm/include/llvm/Analysis/TargetTransformInfo.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/include/llvm/Analysis/TargetTransformInfo.h b/llvm/include/llvm/Analysis/TargetTransformInfo.h
index 9db2e3977f71c..65d37a93363b1 100644
--- a/llvm/include/llvm/Analysis/TargetTransformInfo.h
+++ b/llvm/include/llvm/Analysis/TargetTransformInfo.h
@@ -700,7 +700,7 @@ class TargetTransformInfo {
     /// Don't allow loop unrolling to simulate more than this number of
     /// iterations when checking full unroll profitability
     unsigned MaxIterationsCountToAnalyze;
-    /// Don't disable runtime unroll for the loops which were vectorized.
+    /// Disable runtime unrolling by default for vectorized loops.
     bool UnrollVectorizedLoop = false;
     /// Don't allow runtime unrolling if expanding the trip count takes more
     /// than SCEVExpansionBudget.



More information about the llvm-commits mailing list