[all-commits] [llvm/llvm-project] 68dccb: [LAA] Strip dead code in getStrideFromPointer (NFC...

Ramkumar Ramachandra via All-commits all-commits at lists.llvm.org
Fri May 9 01:21:11 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 68dccb9fa0b09b3485acfc0d436c1d66a4089b8f
      https://github.com/llvm/llvm-project/commit/68dccb9fa0b09b3485acfc0d436c1d66a4089b8f
  Author: Ramkumar Ramachandra <ramkumar.ramachandra at codasip.com>
  Date:   2025-05-09 (Fri, 09 May 2025)

  Changed paths:
    M llvm/lib/Analysis/LoopAccessAnalysis.cpp

  Log Message:
  -----------
  [LAA] Strip dead code in getStrideFromPointer (NFC) (#139140)

The SCEV multiply by 1 doesn't make sense, because SCEV would fold it:
therefore, the OrigPtr == Ptr branch effectively rejects a multiply.
However, in this branch, we have a pointer SCEV that cannot be a
multiply, and hence the code the code is dead. Strip it.



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