diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2021-07-27 22:50:57 -0400 |
---|---|---|
committer | Huber, Joseph <huberjn@ornl.gov> | 2021-07-28 18:57:28 -0400 |
commit | adbaa39dfce7a8361d89b6a3b382fd8f50b94727 (patch) | |
tree | c9713d8996a9580d6ec753f365cc21e56304c816 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | dc9ee3925179c2de79cd2d1ffafc41e70249352c (diff) | |
download | llvm-adbaa39dfce7a8361d89b6a3b382fd8f50b94727.zip llvm-adbaa39dfce7a8361d89b6a3b382fd8f50b94727.tar.gz llvm-adbaa39dfce7a8361d89b6a3b382fd8f50b94727.tar.bz2 |
[Attributor] Change function internalization to not replace uses in internalized callers
The current implementation of function internalization creats a copy of each
function and replaces every use. This has the downside that the external
versions of the functions will call into the internalized versions of the
functions. This prevents them from being fully independent of eachother. This
patch replaces the current internalization scheme with a method that creates
all the copies of the functions intended to be internalized first and then
replaces the uses as long as their caller is not already internalized.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D106931
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions