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

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 15:33:56 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".
----------------
xiangzh1 wrote:

ok, let me rm it, I just want to express the "MaxTripCount is clearly calculated" (e.g 17) not roughly estimated (e.g  "int32 I=0, I < UnkowInt32LoopCount, I++", we may roughly set the MaxTripCount is Int_Max (0x7ffffffff))

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


More information about the llvm-commits mailing list