[lld] r344948 - [ELF][PPC64] Fix a split-stack comment in rLLD344622

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 22 13:30:07 PDT 2018


Author: maskray
Date: Mon Oct 22 13:30:06 2018
New Revision: 344948

URL: http://llvm.org/viewvc/llvm-project?rev=344948&view=rev
Log:
[ELF][PPC64] Fix a split-stack comment in rLLD344622

The blt- instruction (predicted not to be taken) uses cr7, not the default cr0.

Modified:
    lld/trunk/ELF/Arch/PPC64.cpp

Modified: lld/trunk/ELF/Arch/PPC64.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Arch/PPC64.cpp?rev=344948&r1=344947&r2=344948&view=diff
==============================================================================
--- lld/trunk/ELF/Arch/PPC64.cpp (original)
+++ lld/trunk/ELF/Arch/PPC64.cpp Mon Oct 22 13:30:06 2018
@@ -780,7 +780,7 @@ void PPC64::relaxTlsGdToIe(uint8_t *Loc,
 //      # compare needed to actual and branch to allocate_more_stack if more
 //      # space is needed, otherwise fallthrough to 'normal' function body.
 //      cmpld cr7,r12,r0
-//      blt- .Lallocate_more_stack
+//      blt- cr7, .Lallocate_more_stack
 //
 // -) The allocate_more_stack block might be placed after the split-stack
 //    prologue and the `blt-` replaced with a `bge+ .Lnormal_func_body`




More information about the llvm-commits mailing list