diff options
author | Dale Johannesen <dalej@apple.com> | 2010-06-18 19:00:18 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-06-18 19:00:18 +0000 |
commit | c66cdf74a9f1ee12cb9bff39cbd6bc518fbc2d3e (patch) | |
tree | 202dd9a0b8b2c93ff8c1f1b5a0c22641bf9517d2 /lib/Target/ARM/ARMISelLowering.cpp | |
parent | 71f095b20a2b1710d35b81fced4ae8b2ca1a6f61 (diff) | |
download | external_llvm-c66cdf74a9f1ee12cb9bff39cbd6bc518fbc2d3e.zip external_llvm-c66cdf74a9f1ee12cb9bff39cbd6bc518fbc2d3e.tar.gz external_llvm-c66cdf74a9f1ee12cb9bff39cbd6bc518fbc2d3e.tar.bz2 |
Enable tail calls on ARM by default, with some
basic tests.
This has been well tested on Darwin but not elsewhere.
It should work provided the linker correctly resolves
B.W <label in other function>
which it has not seen before, at least from llvm-based
compilers. I'm leaving the arm-tail-calls switch in
until I see if there's any problems because of that;
it might need to be disabled for some environments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106299 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r-- | lib/Target/ARM/ARMISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 50258c6..216ba65 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -55,7 +55,7 @@ STATISTIC(NumTailCalls, "Number of tail calls"); static cl::opt<bool> EnableARMTailCalls("arm-tail-calls", cl::Hidden, cl::desc("Generate tail calls (TEMPORARY OPTION)."), - cl::init(false)); + cl::init(true)); static cl::opt<bool> EnableARMLongCalls("arm-long-calls", cl::Hidden, |