mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 18:42:46 +02:00
Fix the build bot break introduced by r320791.
llvm-svn: 320798
This commit is contained in:
parent
af453b57a3
commit
de6e44ad7c
@ -2217,8 +2217,13 @@ void PPCInstrInfo::replaceInstrWithLI(MachineInstr &MI,
|
||||
MI.RemoveOperand(i);
|
||||
|
||||
// Replace the instruction.
|
||||
if (LII.SetCR)
|
||||
if (LII.SetCR) {
|
||||
MI.setDesc(get(LII.Is64Bit ? PPC::ANDIo8 : PPC::ANDIo));
|
||||
// Set the immediate.
|
||||
MachineInstrBuilder(*MI.getParent()->getParent(), MI)
|
||||
.addImm(LII.Imm).addReg(PPC::CR0, RegState::ImplicitDefine);
|
||||
return;
|
||||
}
|
||||
else
|
||||
MI.setDesc(get(LII.Is64Bit ? PPC::LI8 : PPC::LI));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user