[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
Loading
Please sign in to comment