diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-05-20 17:38:48 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-05-20 17:38:48 +0000 |
commit | 4fcd8250ae5667f1c4ed3f6b0f6ab8272cc51ecc (patch) | |
tree | 8e05e55a5cb08288fb24a504e6d5f2574f29330a /llvm/lib/Target/ARM | |
parent | 02cefc2c237d0d8ae15a4915f0386543dc191fca (diff) | |
download | bcm5719-llvm-4fcd8250ae5667f1c4ed3f6b0f6ab8272cc51ecc.tar.gz bcm5719-llvm-4fcd8250ae5667f1c4ed3f6b0f6ab8272cc51ecc.zip |
Revert accidental commit.
llvm-svn: 131739
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.cpp | 3 | ||||
-rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.h | 6 |
3 files changed, 1 insertions, 10 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index 2c90aa28fe7..e9a996328f8 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -1182,7 +1182,7 @@ ARMTargetLowering::LowerCall(SDValue Chain, SDValue Callee, 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. diff --git a/llvm/lib/Target/ARM/ARMSubtarget.cpp b/llvm/lib/Target/ARM/ARMSubtarget.cpp index 0509d58c2af..c6f266b0753 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.cpp +++ b/llvm/lib/Target/ARM/ARMSubtarget.cpp @@ -46,7 +46,6 @@ ARMSubtarget::ARMSubtarget(const std::string &TT, const std::string &FS, , PostRAScheduler(false) , IsR9Reserved(ReserveR9) , UseMovt(false) - , SupportsTailCall(false) , HasFP16(false) , HasD16(false) , HasHardwareDivide(false) @@ -154,8 +153,6 @@ ARMSubtarget::ARMSubtarget(const std::string &TT, const std::string &FS, else { IsR9Reserved = ReserveR9 | (ARMArchVersion < V6); UseMovt = DarwinUseMOVT && hasV6T2Ops(); - const Triple &T = getTargetTriple(); - SupportsTailCall = T.getOS() == Triple::IOS && !T.isOSVersionLT(5, 0); } if (!isThumb() || hasThumb2()) diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h index c1494109a45..0271c873f19 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.h +++ b/llvm/lib/Target/ARM/ARMSubtarget.h @@ -87,11 +87,6 @@ protected: /// 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 @@ protected: bool isR9Reserved() const { return IsR9Reserved; } bool useMovt() const { return UseMovt && hasV6T2Ops(); } - bool supportsTailCall() const { return SupportsTailCall; } bool allowsUnalignedMem() const { return AllowsUnalignedMem; } |