ARM: enable tail call optimisation on Thumb 2

Tail call optimisation was previously disabled on all targets other than
iOS5.0+.  This enables the tail call optimisation on all Thumb 2 capable
platforms.

The test adjustments are to remove the IR hint "tail" to function invocation.
The tests were designed assuming that tail call optimisations would not kick in
which no longer holds true.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203575 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Saleem Abdulrasool
2014-03-11 15:09:44 +00:00
parent 0638609d66
commit cde1f2eae2
6 changed files with 14 additions and 12 deletions

View File

@@ -301,7 +301,7 @@ declare void @throw_exception_2()
define void @test2() {
entry:
tail call void @throw_exception_2()
call void @throw_exception_2()
ret void
}