[llvm] Users/xiangzhangllvm/loop unroll folding branches (PR #74703)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 05:21:59 PST 2023


================
@@ -776,6 +776,11 @@ shouldPragmaUnroll(Loop *L, const PragmaInfo &PInfo,
   if (PInfo.PragmaFullUnroll && TripCount != 0)
     return TripCount;
 
+  // Small MaxTripCount is clearly calculated with "pragma unroll".
----------------
nikic wrote:

I don't understand what this comment is trying to tell. The code would be clearer without it.

https://github.com/llvm/llvm-project/pull/74703


More information about the llvm-commits mailing list