[InstCombine] visitPHINode(): use InstCombiner::replaceInstUsesWith() instead of...
authorRoman Lebedev <lebedev.ri@gmail.com>
Sat, 29 Aug 2020 11:44:16 +0000 (14:44 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sat, 29 Aug 2020 12:10:00 +0000 (15:10 +0300)
commit4f4eecf0ec56a15b3dc377cac3799463cbf77a1f
tree1a617a443ec9b925f0c5743ffa1f10af769b80c7
parent3e69871ab5a66fb55913a2a2f5e7f5b42899a4c9
[InstCombine] visitPHINode(): use InstCombiner::replaceInstUsesWith() instead of RAUW

As noted in post-commit review, we really shouldn't use RAUW in InstCombine
because we should consistently update Worklist to avoid extra iterations.
llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp