[all-commits] [llvm/llvm-project] 418177: [LoopPeel] prevent estimated trip count overflow b...
Arda Serdar Pektezol via All-commits
all-commits at lists.llvm.org
Wed May 6 13:25:32 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 418177ff46eac2ec50131bb3894d686613db446e
https://github.com/llvm/llvm-project/commit/418177ff46eac2ec50131bb3894d686613db446e
Author: Arda Serdar Pektezol <arda at pektezol.dev>
Date: 2026-05-06 (Wed, 06 May 2026)
Changed paths:
M llvm/lib/Transforms/Utils/LoopPeel.cpp
M llvm/lib/Transforms/Utils/LoopUtils.cpp
A llvm/test/Transforms/LoopUnroll/negative-trip-count.ll
Log Message:
-----------
[LoopPeel] prevent estimated trip count overflow before peel (#195610)
`if (*EstimatedTripCount + AlreadyPeeled <= MaxPeelCount)` case in
`LoopPeel` can have a possible overflow with the `EstimatedTripCount`
value, which causes a hang with `opt`. Added
`llvm::checkedAddUnsigned()` to prevent this, along with a new
regression from the IR reproducer of #173169.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list