[all-commits] [llvm/llvm-project] 02d9a4: [LoopPeel] Pass TripCount to computePeelCount by v...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Jan 19 17:55:00 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 02d9a4d56d7bfd353372ed8afaf2c1350d184145
      https://github.com/llvm/llvm-project/commit/02d9a4d56d7bfd353372ed8afaf2c1350d184145
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-01-19 (Wed, 19 Jan 2022)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/LoopPeel.h
    M llvm/lib/Transforms/Utils/LoopPeel.cpp

  Log Message:
  -----------
  [LoopPeel] Pass TripCount to computePeelCount by value instead of by reference. NFC

The TripCount is not modified by the function so it doesn't need
to be passed by reference. Verified by passing it as const reference
before changing to value.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D117735




More information about the All-commits mailing list