This is an archive of the discontinued LLVM Phabricator instance.

[CallSite removal][SCCP] Use CallBase instead of CallSite. NFC
ClosedPublic

Authored by craig.topper on Apr 19 2020, 9:53 PM.

Diff Detail

Event Timeline

craig.topper created this revision.Apr 19 2020, 9:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2020, 9:53 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
mtrofin accepted this revision.Apr 19 2020, 10:33 PM

lgtm, some naming nits

llvm/lib/Transforms/Scalar/SCCP.cpp
1134–1136

Nit: here and below, CallBase &CB?

This revision is now accepted and ready to land.Apr 19 2020, 10:33 PM
craig.topper marked an inline comment as done.Apr 19 2020, 11:23 PM
craig.topper added inline comments.
llvm/lib/Transforms/Scalar/SCCP.cpp
1134–1136

I was just trying to be consistent with the other visitor functions in the file. But I can change it.

mtrofin added inline comments.Apr 19 2020, 11:37 PM
llvm/lib/Transforms/Scalar/SCCP.cpp
1134–1136

Ah... I see, looks like some cases use just generic "I", some use acronyms (visitCatchSwitch for example). It's a nit anyway, the patch is good to land.

Rename I to CB.

This revision was automatically updated to reflect the committed changes.