[llvm] r320798 - Fix the build bot break introduced by r320791.
Nemanja Ivanovic via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 15 01:51:35 PST 2017
Author: nemanjai
Date: Fri Dec 15 01:51:34 2017
New Revision: 320798
URL: http://llvm.org/viewvc/llvm-project?rev=320798&view=rev
Log:
Fix the build bot break introduced by r320791.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp?rev=320798&r1=320797&r2=320798&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.cpp Fri Dec 15 01:51:34 2017
@@ -2217,8 +2217,13 @@ void PPCInstrInfo::replaceInstrWithLI(Ma
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));
More information about the llvm-commits
mailing list