More closely follow libgcc, which has code after the `ret' instruction to

release the stack segment and reset the stack pointer. Place the code in its own
MBB to make the verifier happy.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141859 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling
2011-10-13 08:24:19 +00:00
parent 1203fe7fc8
commit 4e68054b20
2 changed files with 27 additions and 8 deletions

View File

@@ -81,7 +81,7 @@ define i32 @test_nested(i32 * nest %closure, i32 %other) {
; X64-NEXT: movabsq $0, %r10
; X64-NEXT: movabsq $0, %r11
; X64-NEXT: callq __morestack
; X64-NEXT: movq %rax, %r10
; X64-NEXT: ret
; X64: movq %rax, %r10
}