diff options
| author | Johannes Doerfert <johannes@jdoerfert.de> | 2021-05-15 20:19:11 -0500 |
|---|---|---|
| committer | Johannes Doerfert <johannes@jdoerfert.de> | 2021-05-23 23:00:39 -0500 |
| commit | 1ba2929bb82baa4f3b7e1314f166ef2bd6c5e6d0 (patch) | |
| tree | edd5ef03a6d8e97a17e7042f96decae4b665b710 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | c65bb760df1f7b2b30e3a6b40b91b9a6294e1619 (diff) | |
[Attributor] Be more careful to not disturb the CG outside the SCC
We have seen various problems when the call graph was not updated or
the updated did not succeed because it involved functions outside the
SCC. This patch adds assertions and checks to avoid accidentally
changing something outside the SCC that would impact the call graph.
It also prevents us from reanalyzing functions outside the current
SCC which could cause problems on its own. Note that the transformations
we do might cause the CG to be "more precise" but the original one would
always be a super set of the most precise one. Since the call graph is
by nature an approximation, it is good enough to have a super set of all
call edges.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
