Fix a problem with mips16 stubs when calls are transformed during
authorReed Kotler <rkotler@mips.com>
Wed, 18 Dec 2013 23:57:48 +0000 (23:57 +0000)
committerReed Kotler <rkotler@mips.com>
Wed, 18 Dec 2013 23:57:48 +0000 (23:57 +0000)
commitdeb8e33163b237cecb58eacb90168155eee0573f
tree6128b1614d5763054d4c2c984dc2910039bb0455
parent9e0f77e34ea82eb137c1960338ddf91d584d346e
Fix a problem with mips16 stubs when calls are transformed during
tail call optimization. Some more work may be needed for indirect
calls but this patch fixes the current regression in Prolangc++/trees.
S2 optimization as part of the general cleanup and optimization
of prolog and epilog was not saving S2 in this case and needed to.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197630 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/Mips16HardFloat.cpp
test/CodeGen/Mips/tail16.ll [new file with mode: 0644]