[llvm] 7710d21 - [LoopUnrollPass] Remove unhelpful comment in `shouldPragmaUnroll` (NFC) (#178814)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 30 10:15:24 PST 2026


Author: Justin Fargnoli
Date: 2026-01-30T10:15:19-08:00
New Revision: 7710d213e91b51279d1ff3747af9adf53a610749

URL: https://github.com/llvm/llvm-project/commit/7710d213e91b51279d1ff3747af9adf53a610749
DIFF: https://github.com/llvm/llvm-project/commit/7710d213e91b51279d1ff3747af9adf53a610749.diff

LOG: [LoopUnrollPass] Remove unhelpful comment in `shouldPragmaUnroll` (NFC) (#178814)

The note the comment is making should be obvious based on the structure
of the pass. Additionally, it is grammatically incorrect and has
spelling errors.

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp b/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
index 6f659ed7b5831..6845bc860ed9f 100644
--- a/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
@@ -831,7 +831,6 @@ shouldPragmaUnroll(Loop *L, const PragmaInfo &PInfo,
       MaxTripCount <= UP.MaxUpperBound)
     return MaxTripCount;
 
-  // if didn't return until here, should continue to other priorties
   return std::nullopt;
 }
 


        


More information about the llvm-commits mailing list