[PowerPC] Fix broken kill flag after MI peephole
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 2 Sep 2020 22:04:35 +0000 (17:04 -0500)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 2 Sep 2020 22:07:49 +0000 (17:07 -0500)
commit69289cc10ffd1de4d3bf05d33948e6b21b6e68db
treeefdf8978708c5bc94aea0b0a81737d9d057b6bd9
parent51128b670d4f757132e927c4f3dd78d257d37f70
[PowerPC] Fix broken kill flag after MI peephole

The test case in https://bugs.llvm.org/show_bug.cgi?id=47373 exposed
two bugs in the PPC back end. The first one was fixed in commit
27714075848e7f05a297317ad28ad2570d8e5a43 but the test case had to
be added without -verify-machineinstrs due to the second bug.
This commit fixes the use-after-kill that is left behind by the
PPC MI peephole optimization.
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
llvm/test/CodeGen/PowerPC/jump-tables-collapse-rotate-remove-SrcMI.mir
llvm/test/CodeGen/PowerPC/mi-peephole.mir
llvm/test/CodeGen/PowerPC/pr47373.ll