[DSE] Bail out from getLocForWriteEx if call is not argmemonly/inacc_mem.
authorFlorian Hahn <flo@fhahn.com>
Tue, 20 Oct 2020 12:27:54 +0000 (13:27 +0100)
committerFlorian Hahn <flo@fhahn.com>
Tue, 20 Oct 2020 13:37:53 +0000 (14:37 +0100)
commit6439fde6d403d3e01e265fb84b0beffe67f745c5
tree087f7fc66a87d9ae0df5acd483abe4db0cf0e19b
parent6487ffafd1dd5ab81c440dde46163218a85d90b5
[DSE] Bail out from getLocForWriteEx if call is not argmemonly/inacc_mem.

This change should currently not have any impact, but guard against
further inconsistencies between MemoryLocation and function attributes.
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp