[llvm-commits] [llvm] r131739 - in /llvm/trunk/lib/Target/ARM: ARMISelLowering.cpp ARMSubtarget.cpp ARMSubtarget.h
Evan Cheng
evan.cheng at apple.com
Fri May 20 10:38:48 PDT 2011
Author: evancheng
Date: Fri May 20 12:38:48 2011
New Revision: 131739
URL: http://llvm.org/viewvc/llvm-project?rev=131739&view=rev
Log:
Revert accidental commit.
Modified:
llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
llvm/trunk/lib/Target/ARM/ARMSubtarget.cpp
llvm/trunk/lib/Target/ARM/ARMSubtarget.h
Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=131739&r1=131738&r2=131739&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Fri May 20 12:38:48 2011
@@ -1182,7 +1182,7 @@
bool IsStructRet = (Outs.empty()) ? false : Outs[0].Flags.isSRet();
bool IsSibCall = false;
// Temporarily disable tail calls so things don't break.
- if (!EnableARMTailCalls && !Subtarget->supportsTailCall())
+ if (!EnableARMTailCalls)
isTailCall = false;
if (isTailCall) {
// Check if it's really possible to do a tail call.
Modified: llvm/trunk/lib/Target/ARM/ARMSubtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMSubtarget.cpp?rev=131739&r1=131738&r2=131739&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMSubtarget.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMSubtarget.cpp Fri May 20 12:38:48 2011
@@ -46,7 +46,6 @@
, PostRAScheduler(false)
, IsR9Reserved(ReserveR9)
, UseMovt(false)
- , SupportsTailCall(false)
, HasFP16(false)
, HasD16(false)
, HasHardwareDivide(false)
@@ -154,8 +153,6 @@
else {
IsR9Reserved = ReserveR9 | (ARMArchVersion < V6);
UseMovt = DarwinUseMOVT && hasV6T2Ops();
- const Triple &T = getTargetTriple();
- SupportsTailCall = T.getOS() == Triple::IOS && !T.isOSVersionLT(5, 0);
}
if (!isThumb() || hasThumb2())
Modified: llvm/trunk/lib/Target/ARM/ARMSubtarget.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMSubtarget.h?rev=131739&r1=131738&r2=131739&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMSubtarget.h (original)
+++ llvm/trunk/lib/Target/ARM/ARMSubtarget.h Fri May 20 12:38:48 2011
@@ -87,11 +87,6 @@
/// imms (including global addresses).
bool UseMovt;
- /// SupportsTailCall - True if the OS supports tail call. The dynamic linker
- /// must be able to synthesize call stubs for interworking between ARM and
- /// Thumb.
- bool SupportsTailCall;
-
/// HasFP16 - True if subtarget supports half-precision FP (We support VFP+HF
/// only so far)
bool HasFP16;
@@ -222,7 +217,6 @@
bool isR9Reserved() const { return IsR9Reserved; }
bool useMovt() const { return UseMovt && hasV6T2Ops(); }
- bool supportsTailCall() const { return SupportsTailCall; }
bool allowsUnalignedMem() const { return AllowsUnalignedMem; }
More information about the llvm-commits
mailing list