Author: dim
Date: Thu May  4 21:40:16 2017
New Revision: 317810
URL: https://svnweb.freebsd.org/changeset/base/317810

Log:
  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

Modified:
  head/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp

Modified: head/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
==============================================================================
--- head/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp   Thu May  4 
21:31:50 2017        (r317809)
+++ head/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp   Thu May  4 
21:40:16 2017        (r317810)
@@ -1467,8 +1467,7 @@ void PPCFrameLowering::emitEpilogue(Mach
   }
 
   if (FI->usesPICBase())
-    BuildMI(MBB, MBBI, dl, LoadInst)
-      .addReg(PPC::R30)
+    BuildMI(MBB, MBBI, dl, LoadInst, PPC::R30)
       .addImm(PBPOffset)
       .addReg(RBReg);
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to