[llvm] r267527 - [ppc64] Reenable sibling call optimization on ppc64 since fixed tsan library tail-call issue

Chuang-Yu Cheng via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 00:38:25 PDT 2016


Author: cycheng
Date: Tue Apr 26 02:38:24 2016
New Revision: 267527

URL: http://llvm.org/viewvc/llvm-project?rev=267527&view=rev
Log:
[ppc64] Reenable sibling call optimization on ppc64 since fixed tsan library tail-call issue

print-stack-trace.cc test failure of compiler-rt has been fixed by
r266869 (http://reviews.llvm.org/D19148), so reenable sibling call
optimization on ppc64

Reviewers: nemanjai kbarton

Modified:
    llvm/trunk/docs/ReleaseNotes.rst
    llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp

Modified: llvm/trunk/docs/ReleaseNotes.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/ReleaseNotes.rst?rev=267527&r1=267526&r2=267527&view=diff
==============================================================================
--- llvm/trunk/docs/ReleaseNotes.rst (original)
+++ llvm/trunk/docs/ReleaseNotes.rst Tue Apr 26 02:38:24 2016
@@ -114,6 +114,7 @@ Changes to the PowerPC Target
 
  Moved some optimizations from O3 to O2 (D18562)
 
+* Enable sibling call optimization on ppc64 ELFv1/ELFv2 abi
 
 Changes to the X86 Target
 -------------------------

Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp?rev=267527&r1=267526&r2=267527&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp Tue Apr 26 02:38:24 2016
@@ -55,7 +55,7 @@ cl::desc("disable setting the node sched
 static cl::opt<bool> DisablePPCUnaligned("disable-ppc-unaligned",
 cl::desc("disable unaligned load/store generation on PPC"), cl::Hidden);
 
-static cl::opt<bool> DisableSCO("disable-ppc-sco", cl::init(true),
+static cl::opt<bool> DisableSCO("disable-ppc-sco",
 cl::desc("disable sibling call optimization on ppc"), cl::Hidden);
 
 STATISTIC(NumTailCalls, "Number of tail calls");




More information about the llvm-commits mailing list