[InstCombine] Use replaceOperand() in more places
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 16 Feb 2020 09:16:17 +0000 (10:16 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 21 Feb 2020 17:41:16 +0000 (18:41 +0100)
commit656dff9af48bd242fc0f8a20cf50c6d0921df052
tree80e9fc9bbfae315ac37142892bd57e393cd42fb9
parentdeb0a8bfc4923356beaa47b960d14b0c46a14721
[InstCombine] Use replaceOperand() in more places

Followup to D73919 with another batch of replacements of
setOperand() -> replaceOperand(), to make sure the old
operand gets DCEd right away.

Differential Revision: https://reviews.llvm.org/D74932
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp