[llvm-commits] [llvm] r167039 - /llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Oct 30 20:05:27 PDT 2012


testcase?

On 30 October 2012 15:07, Akira Hatanaka <ahatanaka at mips.com> wrote:
> 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;
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list