diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2020-07-27 13:30:39 +0300 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2020-07-27 15:39:02 +0300 |
commit | 1bac5101cdaabfbc755a6d28936962d11240f932 (patch) | |
tree | 862463279ac41ae685e278a035a9a5788ab4ac83 /llvm/lib/Bitcode/Reader/BitReader.cpp | |
parent | d1271127240b0920e8758519d95a948d03a832ad (diff) | |
download | llvm-1bac5101cdaabfbc755a6d28936962d11240f932.zip llvm-1bac5101cdaabfbc755a6d28936962d11240f932.tar.gz llvm-1bac5101cdaabfbc755a6d28936962d11240f932.tar.bz2 |
[Reduce] Function reduction: replace all users of function with undef
There may be other users of a function other than CallInsts,
but what's more important, we can't actually replace function pointer
with undef, because for constants, that would not preserve the type
and RAUW would assert.
In particular, that affects blockaddress, however it proves to be
prohibitively complex to come up with a good test involving blockaddress:
we'd need to both ensure that the function body survives until
this pass, and is not interesting in this pass.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitReader.cpp')
0 files changed, 0 insertions, 0 deletions