[IPSCCP] Drop argmemonly after replacing pointer argument.
authorFlorian Hahn <flo@fhahn.com>
Sat, 25 Jul 2020 10:52:14 +0000 (11:52 +0100)
committerFlorian Hahn <flo@fhahn.com>
Sat, 25 Jul 2020 10:52:14 +0000 (11:52 +0100)
commit3c1476d26c769cd97a631a129b30c62232ac96b6
tree5187a971aa0f2a0ba3ea77642567df3bdb7c4c6a
parent4363ea61058b67fd6a86e3798ff7c21631270c6d
[IPSCCP] Drop argmemonly after replacing pointer argument.

This patch updates IPSCCP to drop argmemonly and
inaccessiblemem_or_argmemonly if it replaces a pointer argument.

Fixes PR46717.

Reviewers: efriedma, davide, nikic, jdoerfert

Reviewed By: efriedma, jdoerfert

Differential Revision: https://reviews.llvm.org/D84432
llvm/lib/Transforms/Scalar/SCCP.cpp
llvm/test/Transforms/SCCP/ipscp-drop-argmemonly.ll