[all-commits] [llvm/llvm-project] f93264: [SimplifyCFG][PGO] Add missing overflow check to C...
Mitchel Dickerson via All-commits
all-commits at lists.llvm.org
Tue Feb 10 17:17:35 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f932646bf6c7a7d528d9ef0d253500b6ce1cb14f
https://github.com/llvm/llvm-project/commit/f932646bf6c7a7d528d9ef0d253500b6ce1cb14f
Author: Mitchel Dickerson <mitchel.dickerson at mediatek.com>
Date: 2026-02-11 (Wed, 11 Feb 2026)
Changed paths:
M llvm/lib/Transforms/Utils/Local.cpp
A llvm/test/Transforms/SimplifyCFG/branch-weight-overflow.ll
Log Message:
-----------
[SimplifyCFG][PGO] Add missing overflow check to ConstantFoldTerminator (#178964)
Branch weight metadata can overflow when folding large branch weights.
Updated branch weights to uint64_t, added check for overflow, and then
set branch weights using setFittedBranchWeights to ensure branch weight
metadata is not lost.
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