[PATCH] Add tail call optimization for thumb1-only targets rev. 3

Bjoern Haase bjoern.m.haase at web.de
Mon Jan 19 13:50:37 PST 2015


Added test case for use of R7 for LR restore. (This happens if fold SP update into push-pop adds a push r7).

Added stack pointer update similar to v4t epilogue code.

Added code for using LR instead of R12 as scavenge register in case that R12 happens to be liveIn the basic block.


http://reviews.llvm.org/D7005

Files:
  lib/Target/ARM/ARMISelLowering.cpp
  lib/Target/ARM/ARMSubtarget.cpp
  lib/Target/ARM/Thumb1FrameLowering.cpp
  lib/Target/ARM/Thumb1RegisterInfo.cpp
  test/CodeGen/ARM/fourParametersTailCall_v6m.ll
  test/CodeGen/ARM/threeParametersTailCall_v6m.ll
  test/CodeGen/ARM/twoParametersTailCall_v6m.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7005.18402.patch
Type: text/x-patch
Size: 18472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150119/1da7c1fe/attachment.bin>


More information about the llvm-commits mailing list