[NFC][InstCombine] PHI-aware aggregate reconstruction: insert PHI node manually
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 17 Aug 2020 19:59:48 +0000 (22:59 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 17 Aug 2020 21:45:17 +0000 (00:45 +0300)
commit4973ca3eac998068cebe7bd23f47876e7c92b87f
treef7b497e1e259cc1b8234521c7527354d9be0bfe6
parent4791cbdaf9e2ed420d61291439f1154477a2b2a2
[NFC][InstCombine] PHI-aware aggregate reconstruction: insert PHI node manually

This is NFC at the moment, because right now we always insert the PHI
into the same basic block in which the original `insertvalue` instruction
is, but that will change.

Also, fixes addition of the suffix to the value names.
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
llvm/test/Transforms/InstCombine/phi-aware-aggregate-reconstruction.ll