[RPOFunctionAttrs] Use LazyCallGraph instead of CallGraph
authorSamuel <swamulism@gmail.com>
Tue, 7 Feb 2023 18:05:36 +0000 (10:05 -0800)
committerArthur Eubanks <aeubanks@google.com>
Tue, 7 Feb 2023 21:17:27 +0000 (13:17 -0800)
commit4e3aae1b91c9371fd5f76ac4d64a69083e212c28
treec1ff3664e4a1cc0206afce6ff03cb67a565c6bc3
parent0776fc32b15dc76c6b43c41fc4471552833265de
[RPOFunctionAttrs] Use LazyCallGraph instead of CallGraph

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.

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D143358
llvm/include/llvm/InitializePasses.h
llvm/include/llvm/LinkAllPasses.h
llvm/include/llvm/Transforms/IPO.h
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
llvm/lib/Transforms/IPO/IPO.cpp
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
llvm/test/Other/new-pm-lto-defaults.ll