TRE: make TRE a bit more aggressive
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 16 Oct 2014 03:27:30 +0000 (03:27 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 16 Oct 2014 03:27:30 +0000 (03:27 +0000)
commit7f52921976906112e9022006a1ca47cf80b16bc6
tree11d5c7a0c332bc01c9031196b84efacc8b64b79a
parentce842e8c4a4daa48e8aa71336db7797ea91520dc
TRE: make TRE a bit more aggressive

Make tail recursion elimination a bit more aggressive.  This allows us to get
tail recursion on functions that are just branches to a different function.  The
fact that the function takes a byval argument does not restrict it from being
optimised into just a tail call.

llvm-svn: 219899
llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
llvm/test/Transforms/Inline/byval-tail-call.ll
llvm/test/Transforms/TailCallElim/basic.ll
llvm/test/Transforms/TailCallElim/byval.ll [new file with mode: 0644]