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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D117735
[LoopPeel] Pass TripCount to computePeelCount by value instead of by reference. NFC ClosedPublic Authored by craig.topper on Jan 19 2022, 5:26 PM.
Details Summary The TripCount is not modified by the function so it doesn't need
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jan 19 2022, 5:48 PM This revision was landed with ongoing or failed builds.Jan 19 2022, 5:54 PM Closed by commit rG02d9a4d56d7b: [LoopPeel] Pass TripCount to computePeelCount by value instead of by reference. (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 401463 llvm/include/llvm/Transforms/Utils/LoopPeel.h
llvm/lib/Transforms/Utils/LoopPeel.cpp
|