diff options
| author | Nikita Popov <npopov@redhat.com> | 2021-12-17 20:44:15 +0100 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2021-12-17 20:52:34 +0100 |
| commit | eb2cad8329b0526b6b4e9deaf7187530012a64f1 (patch) | |
| tree | 6135c8c9b76f1d685699cafa0f6518243688c104 /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp | |
| parent | 18ab892ff7e9032914ff7fdb07685d5945c84fef (diff) | |
| download | llvm-eb2cad8329b0526b6b4e9deaf7187530012a64f1.zip llvm-eb2cad8329b0526b6b4e9deaf7187530012a64f1.tar.gz llvm-eb2cad8329b0526b6b4e9deaf7187530012a64f1.tar.bz2 | |
[DSE] Make isRemovable() for calls more robust (NFCI)
We can only drop calls if they have an analyzable write, the return
value is not used, they don't throw and they don't diverge. The last
two conditions were previously not checked, because all the libcalls
with analyzable writes already happened to satisfy those conditions
anyway. This may not be true for generalizations (with D115904 in mind).
No test changes because the necessary attributes are already inferred
for currently supported libcalls.
Differential Revision: https://reviews.llvm.org/D115962
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp')
0 files changed, 0 insertions, 0 deletions
