[all-commits] [llvm/llvm-project] 2cc536: [SCEV] Check whether the start is non-zero in `Sca...
Yingwei Zheng via All-commits
all-commits at lists.llvm.org
Tue Mar 18 16:00:32 PDT 2025
Branch: refs/heads/release/20.x
Home: https://github.com/llvm/llvm-project
Commit: 2cc53628fbe88d00c8f54bfd54530330f191ebfc
https://github.com/llvm/llvm-project/commit/2cc53628fbe88d00c8f54bfd54530330f191ebfc
Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: 2025-03-18 (Tue, 18 Mar 2025)
Changed paths:
M llvm/lib/Analysis/ScalarEvolution.cpp
M llvm/test/Analysis/ScalarEvolution/trip-count-unknown-stride.ll
A llvm/test/Transforms/LoopUnroll/pr131465.ll
Log Message:
-----------
[SCEV] Check whether the start is non-zero in `ScalarEvolution::howFarToZero` (#131522)
https://github.com/llvm/llvm-project/pull/94525 assumes that the loop
will be infinite when the stride is zero. However, it doesn't hold when
the start value of addrec is also zero.
Closes https://github.com/llvm/llvm-project/issues/131465.
(cherry picked from commit c5a491e9ea22014b65664b6e09134b4f055933e2)
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