This is an archive of the discontinued LLVM Phabricator instance.

[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
to be passed by reference. Verified by passing it as const reference
before changing to value.

Diff Detail

Event Timeline

craig.topper created this revision.Jan 19 2022, 5:26 PM
craig.topper requested review of this revision.Jan 19 2022, 5:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2022, 5:26 PM
reames accepted this revision.Jan 19 2022, 5:48 PM

LGTM

This could have landed without review.

This 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
This revision was automatically updated to reflect the committed changes.