[PATCH] D21138: [mips] Enable tail calls by default

Simon Dardis via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 8 08:07:14 PDT 2016


sdardis created this revision.
sdardis added a reviewer: dsanders.
sdardis added a subscriber: llvm-commits.
sdardis set the repository for this revision to rL LLVM.
Herald added a reviewer: vkalintiris.
Herald added subscribers: sdardis, dsanders, jfb.

Enable tail calls by default for (micro)MIPS(64).
    
microMIPS is slightly more tricky than doing it for MIPS(R6) or microMIPSR6.
microMIPS has two instruction encodings: 16bit and 32bit along with some
restrictions on the size of the instruction that can fill the delay slot.
For safe tail calls for microMIPS, the delay slot filler attempts to find
a correct size instruction for the delay slot of TAILCALL pseudos.

Repository:
  rL LLVM

http://reviews.llvm.org/D21138

Files:
  lib/Target/Mips/MicroMipsInstrInfo.td
  lib/Target/Mips/Mips32r6InstrInfo.td
  lib/Target/Mips/Mips64InstrInfo.td
  lib/Target/Mips/Mips64r6InstrInfo.td
  lib/Target/Mips/MipsDelaySlotFiller.cpp
  lib/Target/Mips/MipsInstrInfo.cpp
  lib/Target/Mips/MipsInstrInfo.td
  lib/Target/Mips/MipsSEISelLowering.cpp
  test/CodeGen/Mips/biggot.ll
  test/CodeGen/Mips/brdelayslot.ll
  test/CodeGen/Mips/cconv/reserved-space.ll
  test/CodeGen/Mips/compactbranches/tailrecursion.ll
  test/CodeGen/Mips/fastcc.ll
  test/CodeGen/Mips/gpreg-lazy-binding.ll
  test/CodeGen/Mips/i64arg.ll
  test/CodeGen/Mips/indirectcall.ll
  test/CodeGen/Mips/lazy-binding.ll
  test/CodeGen/Mips/llvm-ir/call.ll
  test/CodeGen/Mips/nacl-branch-delay.ll
  test/CodeGen/Mips/tailcall.ll
  test/CodeGen/Mips/tailrecursion.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21138.60040.patch
Type: text/x-patch
Size: 29255 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160608/72b689e3/attachment.bin>


More information about the llvm-commits mailing list