[PowerPC] Bail out of redundant LI elimination on an implicit kill
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Fri, 10 Apr 2020 02:34:30 +0000 (21:34 -0500)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Fri, 10 Apr 2020 03:17:29 +0000 (22:17 -0500)
commit7f3787c0f2746f7748d642ffc9ce699a295df9e4
tree075a612f6015dc334a795d54da4a2be5378bbc26
parent4275eb13315fbc59b8976667b774de2a1510fc36
[PowerPC] Bail out of redundant LI elimination on an implicit kill

The transformation currently does not differentiate between explicit
and implicit kills. However, it is not valid to later simply clear
an implicit kill flag since the kill could be due to a call or return.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=45374
llvm/lib/Target/PowerPC/PPCPreEmitPeephole.cpp
llvm/test/CodeGen/PowerPC/remove-redundant-li-skip-imp-kill.mir [new file with mode: 0644]