[NFC][InstCombine] Add tests for PHI CSE
authorRoman Lebedev <lebedev.ri@gmail.com>
Sat, 29 Aug 2020 07:38:28 +0000 (10:38 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sat, 29 Aug 2020 10:13:06 +0000 (13:13 +0300)
commit3ba83f2d29e5103b864a5a2f957bd10be73d9663
treeb08772c896cb03f9dc0f2c82ab797673cdb75b92
parentfc2dac4116df62c25396b15ec9730f67a0b1aac7
[NFC][InstCombine] Add tests for PHI CSE

As discussed in https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20200824/824235.html
even though it seems worthwhile doing so in InstSimplify,
we really can't do that there, because the other PHI wouldn't be
def-reachable from the original PHI.

So ignoring whether or not EarlyCSE should also know to do this,
InstCombine is the place.
llvm/test/Transforms/InstCombine/phi-cse.ll [new file with mode: 0644]