Skip to content
Commit 65089fc6 authored by Evan Cheng's avatar Evan Cheng
Browse files

Use pushq / popq instead of subq $8, %rsp / addq $8, %rsp to adjust stack in

prologue and epilogue if the adjustment is 8. Similarly, use pushl / popl if
the adjustment is 4 in 32-bit mode.

In the epilogue, takes care to pop to a caller-saved register that's not live
at the exit (either return or tailcall instruction).
rdar://8771137

llvm-svn: 122783
parent 752a5956
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment