[all-commits] [llvm/llvm-project] 9f1b6b: [LoopUnroll] Fix division by zero
Joel E. Denny via All-commits
all-commits at lists.llvm.org
Mon Nov 3 15:09:38 PST 2025
Branch: refs/heads/users/jdenny-ornl/unroll-fix-prob-one
Home: https://github.com/llvm/llvm-project
Commit: 9f1b6b668c0d852ffe6847d5992a2d31f0e23dd3
https://github.com/llvm/llvm-project/commit/9f1b6b668c0d852ffe6847d5992a2d31f0e23dd3
Author: Joel E. Denny <jdenny.ornl at gmail.com>
Date: 2025-11-03 (Mon, 03 Nov 2025)
Changed paths:
M llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
A llvm/test/Transforms/LoopUnroll/loop-probability-one.ll
Log Message:
-----------
[LoopUnroll] Fix division by zero
PR #159163's probability computation for epilogue loops does not
handle the possibility of an original loop probability of one.
Runtime loop unrolling does not make sense for such an infinite loop,
and a division by zero results. This patch works around that case.
Issue #165998.
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