This is an archive of the discontinued LLVM Phabricator instance.

X86: Allow conditional tail calls in Win64 "leaf" functions (PR26302)
ClosedPublic

Authored by hans on Sep 22 2016, 10:45 AM.

Details

Summary

We can't use Jcc to leave a Win64 function in general, because that confuses the unwinder. However, for "leaf" functions, that is, functions where the return address is always on top of the stack and which don't have unwind info, it's OK.

This depends on https://reviews.llvm.org/D24748

Diff Detail

Repository
rL LLVM

Event Timeline

hans updated this revision to Diff 72195.Sep 22 2016, 10:45 AM
hans retitled this revision from to X86: Allow conditional tail calls in Win64 "leaf" functions (PR26302).
hans updated this object.
hans added reviewers: rnk, majnemer.
hans added a subscriber: llvm-commits.
rnk accepted this revision.Sep 30 2016, 10:10 AM
rnk edited edge metadata.

lgtm

This revision is now accepted and ready to land.Sep 30 2016, 10:10 AM
This revision was automatically updated to reflect the committed changes.