[InstCombine] foldAggregateConstructionIntoAggregateReuse(): use InstCombiner::replac...
authorRoman Lebedev <lebedev.ri@gmail.com>
Sat, 29 Aug 2020 12:04:07 +0000 (15:04 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sat, 29 Aug 2020 12:10:14 +0000 (15:10 +0300)
commit71ac9105cd392a257d15515579c70f06c970c5cb
tree16d7b2fbcda6e9337c2380adc44ba10af73c109a
parente65f2131782bc39ec66fc9c74991ff6c2ff1d93b
[InstCombine] foldAggregateConstructionIntoAggregateReuse(): use InstCombiner::replaceInstUsesWith() instead of RAUW

We really shouldn't use RAUW in InstCombine
because we should consistently update Worklist to avoid extra iterations.
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp