This is an archive of the discontinued LLVM Phabricator instance.

[RPOFunctionAttrs] Use LazyCallGraph instead of CallGraph
ClosedPublic

Authored by swamulism on Feb 5 2023, 5:17 PM.

Details

Summary

There are a few more uses of CallGraph that should be replaced with LazyCallGraph

Also delete legacy version of RPOFunctionAttrs since it is deprecated and LazyCallGraph is not available under the legacy pass manager.

Diff Detail

Event Timeline

swamulism created this revision.Feb 5 2023, 5:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 5 2023, 5:17 PM
swamulism requested review of this revision.Feb 5 2023, 5:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 5 2023, 5:17 PM

presubmit testing is saying that new-pm-lto-defaults.ll is still failing with the change

llvm/lib/Transforms/IPO/FunctionAttrs.cpp
1918

don't need make_early_inc_range, that's only used when iterating while mutating and we're not mutating the call graph

aeubanks accepted this revision.Feb 6 2023, 9:54 PM
This revision is now accepted and ready to land.Feb 6 2023, 9:54 PM
This revision was landed with ongoing or failed builds.Feb 7 2023, 1:17 PM
This revision was automatically updated to reflect the committed changes.