mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 20:29:30 +00:00
Do not do tail-call optimization if target is mips16.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167039 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
93f6f45761
commit
e7b406d7ac
@ -2665,6 +2665,10 @@ IsEligibleForTailCallOptimization(const MipsCC &MipsCCInfo, bool IsVarArg,
|
||||
if (!EnableMipsTailCalls)
|
||||
return false;
|
||||
|
||||
// No tail call optimization for mips16.
|
||||
if (Subtarget->inMips16Mode())
|
||||
return false;
|
||||
|
||||
if (MipsCCInfo.hasByValArg() || IsVarArg)
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user