svn commit: r317943 - stable/11/contrib/llvm/lib/Target/PowerPC

Dimitry Andric dim at FreeBSD.org
Mon May 8 16:06:22 UTC 2017


Author: dim
Date: Mon May  8 16:06:20 2017
New Revision: 317943
URL: https://svnweb.freebsd.org/changeset/base/317943

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

Modified:
  stable/11/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
==============================================================================
--- stable/11/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp	Mon May  8 15:51:29 2017	(r317942)
+++ stable/11/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp	Mon May  8 16:06:20 2017	(r317943)
@@ -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);
 


More information about the svn-src-stable mailing list