[PowerPC] Remove the implicit use of the register if it is replaced by Imm
authorQingShan Zhang <qshanz@cn.ibm.com>
Fri, 28 Dec 2018 03:38:09 +0000 (03:38 +0000)
committerQingShan Zhang <qshanz@cn.ibm.com>
Fri, 28 Dec 2018 03:38:09 +0000 (03:38 +0000)
commitf2d9df61c7171f6a91dd65a0d277fbbc5feef05c
tree10eb859de5ea65ec03ab0c9a2740d45053216f42
parent51874443453b96cfe994865bc74e1a2ce5fb5dcc
[PowerPC] Remove the implicit use of the register if it is replaced by Imm
If we are changing the MI operand from Reg to Imm, we need also handle its implicit use if have.

Differential Revision: https://reviews.llvm.org/D56078

llvm-svn: 350115
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.h
llvm/test/CodeGen/PowerPC/remove-implicit-use.mir [new file with mode: 0644]