Skip to content

Commit 9087c66

Browse files
author
David Salinas
committed
Revert "[LoopUnroll] Make use of MaxTripCount for loops with "#pragma unroll" (llvm#74703)"
This reverts commit c5afecc. Change-Id: Iaa26202b30f8a2bd206d3714476c8eaaef65f582
1 parent d1bbbf4 commit 9087c66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ shouldPragmaUnroll(Loop *L, const PragmaInfo &PInfo,
780780
return TripCount;
781781

782782
if (PInfo.PragmaEnableUnroll && !TripCount && MaxTripCount &&
783-
MaxTripCount <= UnrollMaxUpperBound)
783+
MaxTripCount <= UP.MaxUpperBound)
784784
return MaxTripCount;
785785

786786
// if didn't return until here, should continue to other priorties

0 commit comments

Comments
 (0)