diff options
author | Florian Hahn <flo@fhahn.com> | 2025-05-15 22:32:04 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2025-05-15 22:33:10 +0100 |
commit | 4f663cca15f2b53c2bc6a84d1b1f5bd81679356d (patch) | |
tree | 8a7d7cb4dee5108f28ef17d6c279fd7bb76ccace /llvm/lib/Transforms/Utils/LoopPeel.cpp | |
parent | efae492ad1ba80764ec4a85f5622a8713646f970 (diff) | |
download | llvm-4f663cca15f2b53c2bc6a84d1b1f5bd81679356d.zip llvm-4f663cca15f2b53c2bc6a84d1b1f5bd81679356d.tar.gz llvm-4f663cca15f2b53c2bc6a84d1b1f5bd81679356d.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopPeel.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopPeel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopPeel.cpp b/llvm/lib/Transforms/Utils/LoopPeel.cpp index f15252b..99aac24 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; |