[all-commits] [llvm/llvm-project] 26ba30: [SLP][NFC] Simplify range/type accessors

Alexey Bataev via All-commits all-commits at lists.llvm.org
Sat Apr 18 15:03:14 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26ba308be0eeb652ecbc0ad3c660ef69404c0185
      https://github.com/llvm/llvm-project/commit/26ba308be0eeb652ecbc0ad3c660ef69404c0185
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2026-04-18 (Sat, 18 Apr 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

  Log Message:
  -----------
  [SLP][NFC] Simplify range/type accessors

Use the range-friendly llvm::accumulate() overload instead of the
two-iterator std::accumulate() form, drop redundant cast<>/dyn_cast<>
calls where the source already provides a typed accessor.

Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/192811



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