mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-18 10:24:45 +00:00
Revert accidental commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131739 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1182,7 +1182,7 @@ ARMTargetLowering::LowerCall(SDValue Chain, SDValue Callee,
|
|||||||
bool IsStructRet = (Outs.empty()) ? false : Outs[0].Flags.isSRet();
|
bool IsStructRet = (Outs.empty()) ? false : Outs[0].Flags.isSRet();
|
||||||
bool IsSibCall = false;
|
bool IsSibCall = false;
|
||||||
// Temporarily disable tail calls so things don't break.
|
// Temporarily disable tail calls so things don't break.
|
||||||
if (!EnableARMTailCalls && !Subtarget->supportsTailCall())
|
if (!EnableARMTailCalls)
|
||||||
isTailCall = false;
|
isTailCall = false;
|
||||||
if (isTailCall) {
|
if (isTailCall) {
|
||||||
// Check if it's really possible to do a tail call.
|
// Check if it's really possible to do a tail call.
|
||||||
|
@@ -46,7 +46,6 @@ ARMSubtarget::ARMSubtarget(const std::string &TT, const std::string &FS,
|
|||||||
, PostRAScheduler(false)
|
, PostRAScheduler(false)
|
||||||
, IsR9Reserved(ReserveR9)
|
, IsR9Reserved(ReserveR9)
|
||||||
, UseMovt(false)
|
, UseMovt(false)
|
||||||
, SupportsTailCall(false)
|
|
||||||
, HasFP16(false)
|
, HasFP16(false)
|
||||||
, HasD16(false)
|
, HasD16(false)
|
||||||
, HasHardwareDivide(false)
|
, HasHardwareDivide(false)
|
||||||
@@ -154,8 +153,6 @@ ARMSubtarget::ARMSubtarget(const std::string &TT, const std::string &FS,
|
|||||||
else {
|
else {
|
||||||
IsR9Reserved = ReserveR9 | (ARMArchVersion < V6);
|
IsR9Reserved = ReserveR9 | (ARMArchVersion < V6);
|
||||||
UseMovt = DarwinUseMOVT && hasV6T2Ops();
|
UseMovt = DarwinUseMOVT && hasV6T2Ops();
|
||||||
const Triple &T = getTargetTriple();
|
|
||||||
SupportsTailCall = T.getOS() == Triple::IOS && !T.isOSVersionLT(5, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isThumb() || hasThumb2())
|
if (!isThumb() || hasThumb2())
|
||||||
|
@@ -87,11 +87,6 @@ protected:
|
|||||||
/// imms (including global addresses).
|
/// imms (including global addresses).
|
||||||
bool UseMovt;
|
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
|
/// HasFP16 - True if subtarget supports half-precision FP (We support VFP+HF
|
||||||
/// only so far)
|
/// only so far)
|
||||||
bool HasFP16;
|
bool HasFP16;
|
||||||
@@ -222,7 +217,6 @@ protected:
|
|||||||
bool isR9Reserved() const { return IsR9Reserved; }
|
bool isR9Reserved() const { return IsR9Reserved; }
|
||||||
|
|
||||||
bool useMovt() const { return UseMovt && hasV6T2Ops(); }
|
bool useMovt() const { return UseMovt && hasV6T2Ops(); }
|
||||||
bool supportsTailCall() const { return SupportsTailCall; }
|
|
||||||
|
|
||||||
bool allowsUnalignedMem() const { return AllowsUnalignedMem; }
|
bool allowsUnalignedMem() const { return AllowsUnalignedMem; }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user