[all-commits] [llvm/llvm-project] cedeef: [LSR] Replace casts with an equivalent std::as_con...

Sergei Barannikov via All-commits all-commits at lists.llvm.org
Thu May 8 03:36:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cedeef6707fc702ed4ba197b3c841edbc688c78e
      https://github.com/llvm/llvm-project/commit/cedeef6707fc702ed4ba197b3c841edbc688c78e
  Author: Sergei Barannikov <barannikov88 at gmail.com>
  Date:   2025-05-08 (Thu, 08 May 2025)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp

  Log Message:
  -----------
  [LSR] Replace casts with an equivalent std::as_const (NFC) (#138980)

The casts / `std::as_const` are used here to select `const` overload of
`begin()`/`end()` so that the type of the returned iterator matches the
type of `J`, which is `const_iterator`.



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