summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2017-12-15 09:51:34 +0000
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2017-12-15 09:51:34 +0000
commit74ecf59cc0e3a9306874508dd41f65606a693aa8 (patch)
tree7b6fb1951adf82dc3446f46c8f53dad56401f157 /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
parent59136ffab1b0b051d2b56a90b8fb86d5721ed0b5 (diff)
downloadbcm5719-llvm-74ecf59cc0e3a9306874508dd41f65606a693aa8.tar.gz
bcm5719-llvm-74ecf59cc0e3a9306874508dd41f65606a693aa8.zip
Fix the build bot break introduced by r320791.
llvm-svn: 320798
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
index a9060b41794..e047179586e 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
@@ -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));
OpenPOWER on IntegriCloud