[Attributor] Only replace instruction operands
authorJohannes Doerfert <johannes@jdoerfert.de>
Sat, 14 Dec 2019 04:11:42 +0000 (22:11 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Sat, 14 Dec 2019 04:16:38 +0000 (22:16 -0600)
commit5d34602da452bd34b6b1bc6bc0a92017050bbe4a
treea26875e1734df8a6afc7982a9bb98b4262a26d58
parent3da7efedaa77f8fd8d40294c9e79716003517e6d
[Attributor] Only replace instruction operands

This was part of D70767. When we replace the value of (call/invoke)
instructions we do not want to disturb the old call graph so we will
only replace instruction uses until we get rid of the old PM.

Accepted as part of D70767.
llvm/lib/Transforms/IPO/Attributor.cpp