[LoopPeel] Pass TripCount to computePeelCount by value instead of by reference. NFC
authorCraig Topper <craig.topper@sifive.com>
Thu, 20 Jan 2022 01:52:09 +0000 (17:52 -0800)
committerCraig Topper <craig.topper@sifive.com>
Thu, 20 Jan 2022 01:54:45 +0000 (17:54 -0800)
commit02d9a4d56d7bfd353372ed8afaf2c1350d184145
treee37b02d7716a4943b200dd56fc1a2f9d24a3e7f3
parent78649a8499a0177cced99dcd61afcb48809e9109
[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
llvm/include/llvm/Transforms/Utils/LoopPeel.h
llvm/lib/Transforms/Utils/LoopPeel.cpp