Skip to content

Commit 4f663cc

Browse files
committed
[LoopPeel] Make sure PeelLast is always initialized.
Make sure PeelLast is initialized on all paths. Should fix MSan bootstrap failures https://lab.llvm.org/buildbot/#/builders/164/builds/9992 https://lab.llvm.org/buildbot/#/builders/94/builds/7158 Fixup after #139551.
1 parent efae492 commit 4f663cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/Utils/LoopPeel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ void llvm::computePeelCount(Loop *L, unsigned LoopSize,
596596
// TTI.getPeelingPreferences or by the flag -unroll-peel-count.
597597
unsigned TargetPeelCount = PP.PeelCount;
598598
PP.PeelCount = 0;
599+
PP.PeelLast = false;
599600
if (!canPeel(L))
600601
return;
601602

0 commit comments

Comments
 (0)