[PATCH] Allow memory intrinsics to be tail calls

Krzysztof Parzyszek kparzysz at codeaurora.org
Thu Apr 2 13:24:05 PDT 2015


Hi resistor,

If the target lowering decides to create a call from a memory intrinsic (memcpy, memmove or memset), the call will not become a tail call even if it is possible.
This patch enables such conversion.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8808

Files:
  include/llvm/CodeGen/SelectionDAG.h
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  lib/Target/AArch64/AArch64ISelLowering.cpp
  lib/Target/Hexagon/HexagonISelLowering.cpp
  lib/Target/MSP430/MSP430ISelLowering.cpp
  lib/Target/Mips/MipsISelLowering.cpp
  lib/Target/PowerPC/PPCISelLowering.cpp
  lib/Target/Sparc/SparcISelLowering.cpp
  lib/Target/SystemZ/SystemZISelLowering.cpp
  lib/Target/X86/X86ISelLowering.cpp
  lib/Target/X86/X86SelectionDAGInfo.cpp
  lib/Target/XCore/XCoreISelLowering.cpp
  test/CodeGen/AArch64/tailcall-mem-intrinsics.ll
  test/CodeGen/ARM/tail-call-mem-intrinsics.ll
  test/CodeGen/Hexagon/tail-call-mem-intrinsics.ll
  test/CodeGen/SystemZ/tail-call-mem-intrinsics.ll
  test/CodeGen/X86/tailcall-mem-intrinsics.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8808.23178.patch
Type: text/x-patch
Size: 21551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150402/c7d571b7/attachment.bin>


More information about the llvm-commits mailing list