diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2017-09-07 05:35:35 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-09-07 05:35:35 +0000 |
| commit | 681fbb64a4cdaba874280bb23e41d2126c7c5766 (patch) | |
| tree | a184914b63e3b0255bc80a29e8fcb9c0307a297a /llvm/lib/Bitcode/Reader/BitReader.cpp | |
| parent | 754e58407667361533f778ea195f3a98bafde3ec (diff) | |
| download | llvm-681fbb64a4cdaba874280bb23e41d2126c7c5766.zip llvm-681fbb64a4cdaba874280bb23e41d2126c7c5766.tar.gz llvm-681fbb64a4cdaba874280bb23e41d2126c7c5766.tar.bz2 | |
ModuleSummaryAnalysis: Correctly handle all function operand references.
The current code that handles personality functions when creating a
module summary does not correctly handle the case where a function's
personality function operand refers to the function indirectly
(e.g. via a bitcast). This patch handles such cases by treating
personality function references like any other reference, i.e. by
adding them to the function's reference list. This has the minor side
benefit of allowing personality functions to participate in early
dead stripping.
We do this by calling findRefEdges on the function itself. This way
we also end up handling other function operands (specifically prefix
data and prologue data) for free.
Differential Revision: https://reviews.llvm.org/D37553
llvm-svn: 312698
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitReader.cpp')
0 files changed, 0 insertions, 0 deletions
