Pull in r302183 from upstream llvm trunk (by Krzysztof Parzyszek):

[PPC] When restoring R30 (PIC base pointer), mark it as <def>

  This happened on the PPC32/SVR4 path and was discovered when building
  FreeBSD on PPC32. It was a typo-class error in the frame lowering
  code.

  This fixes PR26519.

Reported by:	Mark Millard
PR:		206990
MFC after:	3 days
This commit is contained in:
Dimitry Andric 2017-05-04 21:40:16 +00:00
parent de6fc2729e
commit e95e534732

View File

@ -1467,8 +1467,7 @@ void PPCFrameLowering::emitEpilogue(MachineFunction &MF,
}
if (FI->usesPICBase())
BuildMI(MBB, MBBI, dl, LoadInst)
.addReg(PPC::R30)
BuildMI(MBB, MBBI, dl, LoadInst, PPC::R30)
.addImm(PBPOffset)
.addReg(RBReg);