[llvm] 4f663cc - [LoopPeel] Make sure PeelLast is always initialized.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu May 15 14:33:27 PDT 2025
Author: Florian Hahn
Date: 2025-05-15T22:33:10+01:00
New Revision: 4f663cca15f2b53c2bc6a84d1b1f5bd81679356d
URL: https://github.com/llvm/llvm-project/commit/4f663cca15f2b53c2bc6a84d1b1f5bd81679356d
DIFF: https://github.com/llvm/llvm-project/commit/4f663cca15f2b53c2bc6a84d1b1f5bd81679356d.diff
LOG: [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 https://github.com/llvm/llvm-project/pull/139551.
Added:
Modified:
llvm/lib/Transforms/Utils/LoopPeel.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/LoopPeel.cpp b/llvm/lib/Transforms/Utils/LoopPeel.cpp
index f15252b5f77e1..99aac24ca67e7 100644
--- a/llvm/lib/Transforms/Utils/LoopPeel.cpp
+++ b/llvm/lib/Transforms/Utils/LoopPeel.cpp
@@ -596,6 +596,7 @@ void llvm::computePeelCount(Loop *L, unsigned LoopSize,
// TTI.getPeelingPreferences or by the flag -unroll-peel-count.
unsigned TargetPeelCount = PP.PeelCount;
PP.PeelCount = 0;
+ PP.PeelLast = false;
if (!canPeel(L))
return;
More information about the llvm-commits
mailing list