This is an archive of the discontinued LLVM Phabricator instance.

[llvm][NFC][CallSite] Remove CallSite from ProfileSummary
ClosedPublic

Authored by mtrofin on Apr 17 2020, 7:37 PM.

Diff Detail

Event Timeline

mtrofin created this revision.Apr 17 2020, 7:37 PM
dblaikie accepted this revision.Apr 18 2020, 9:46 AM
dblaikie added inline comments.
llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp
230

I think I'd tend to deref first, then cast (the earlier the constraint is applied the better/tools can diagnose the problem closer to the source), but don't mind either way.

This revision is now accepted and ready to land.Apr 18 2020, 9:46 AM
mtrofin marked 2 inline comments as done.Apr 18 2020, 12:06 PM
mtrofin added inline comments.
llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp
230

I see what you mean. Here, I wouldn't want to introduce another variable, and I think there's little ambiguity where a failure may happen, since cast would be the one to trigger it.

craig.topper added inline comments.Apr 18 2020, 12:14 PM
llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp
230

I think the suggestion was to put the * inside the parentheses instead outside the cast.

This revision was automatically updated to reflect the committed changes.
mtrofin marked an inline comment as done.
dblaikie added inline comments.Apr 18 2020, 2:59 PM
llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp
230

That was the notion, yeah - no big deal though & sorry for the lack of clarity.

mtrofin marked 3 inline comments as done.Apr 18 2020, 5:51 PM
mtrofin added inline comments.
llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp
230