[all-commits] [llvm/llvm-project] c5a491: [SCEV] Check whether the start is non-zero in `Sca...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Sun Mar 16 22:59:37 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c5a491e9ea22014b65664b6e09134b4f055933e2
      https://github.com/llvm/llvm-project/commit/c5a491e9ea22014b65664b6e09134b4f055933e2
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2025-03-17 (Mon, 17 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.



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