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 | c1570dda5c4fd8792fb159a0ec77ceee6348887a (patch) | |
| tree | 896b7cbefa8b205ce5fcf2aa4f0db2ff04f1a105 /llvm/lib/Target/ARM | |
| parent | e5457c275d0b5594995af70f8bf900c7fe435c26 (diff) | |
| download | bcm5719-llvm-c1570dda5c4fd8792fb159a0ec77ceee6348887a.tar.gz bcm5719-llvm-c1570dda5c4fd8792fb159a0ec77ceee6348887a.zip | |
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.
llvm-svn: 106299
Diffstat (limited to 'llvm/lib/Target/ARM')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index 50258c6f85e..216ba6578ed 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/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, |

