OSDN Git Service

ARM: honour -f{no-,}optimize-sibling-calls
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 11 Mar 2014 15:09:54 +0000 (15:09 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 11 Mar 2014 15:09:54 +0000 (15:09 +0000)
commit90d0ed297fabb373a29222b18f127dc853557bc8
treec399c3f7fb0d62560d247d9a8448d1ab0bbb02e4
parent2b42ff6fdbe07b5c9bbc2831e28f3ff4529eb64f
ARM: honour -f{no-,}optimize-sibling-calls

Use the options in the ARMISelLowering to control whether tail calls are
optimised or not.  Previously, this option was entirely ignored on the ARM
target and only honoured on x86.

This option is mostly useful in profiling scenarios.  The default remains that
tail call optimisations will be applied.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203577 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/tail-call.ll [new file with mode: 0644]