This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Code cleanups in InlineCost.cpp.
ClosedPublic

Authored by jacobhegna on Jul 2 2021, 11:17 AM.

Details

Summary
  • annotate const functions with "const"
  • replace C-style casts with static_cast

Diff Detail

Event Timeline

jacobhegna created this revision.Jul 2 2021, 11:17 AM
jacobhegna requested review of this revision.Jul 2 2021, 11:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 2 2021, 11:17 AM
mtrofin added inline comments.Jul 2 2021, 11:47 AM
llvm/lib/Analysis/InlineCost.cpp
465

is INT_MAX used elsewhere in this file, or is numeric_limits used instead? basically, I'd stick to whatever is used in the file for consistency. If there's no consistency, I'd fix that in its own patch

jacobhegna edited the summary of this revision. (Show Details)

Remove std::numeric_limits<int>::max() changes.

mtrofin accepted this revision.Jul 21 2021, 3:57 PM
This revision is now accepted and ready to land.Jul 21 2021, 3:57 PM
This revision was landed with ongoing or failed builds.Jul 21 2021, 5:04 PM
This revision was automatically updated to reflect the committed changes.