[llvm-commits] [llvm] r167039 - /llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
Akira Hatanaka
ahatanaka at mips.com
Tue Oct 30 12:07:58 PDT 2012
Author: ahatanak
Date: Tue Oct 30 14:07:58 2012
New Revision: 167039
URL: http://llvm.org/viewvc/llvm-project?rev=167039&view=rev
Log:
Do not do tail-call optimization if target is mips16.
Modified:
llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp?rev=167039&r1=167038&r2=167039&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp Tue Oct 30 14:07:58 2012
@@ -2665,6 +2665,10 @@
if (!EnableMipsTailCalls)
return false;
+ // No tail call optimization for mips16.
+ if (Subtarget->inMips16Mode())
+ return false;
+
if (MipsCCInfo.hasByValArg() || IsVarArg)
return false;
More information about the llvm-commits
mailing list