For split-stack, if the nested argument (i.e. R10) is not used, no need to save/restore it in the prologue.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Good cleanup -- LGTM.
We can obviously test this with Go -- do we know of any other easily usable testcases/applications that use the nested argument?
Comment Actions
Thanks for the review.
We can obviously test this with Go -- do we know of any other easily usable testcases/applications that use the nested argument?
Closures do. The save/restore R10 code path is used when a closure call splits the stack. For example, a recursive closure like https://play.golang.org/p/6t1xV8ThJuN .