[PATCH] D77015: Fix mismatch in prologue and epilogue for funclets on AArch64 Windows
Daniel Frampton via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 29 10:08:22 PDT 2020
danielframpton created this revision.
danielframpton added reviewers: efriedma, rnk.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
The generated code for a funclet can have an add to sp in the epilogue for which there is no corresponding sub in the prologue.
This patch removes the early return from emitPrologue that was preventing the sub to sp, and instead conditionalizes the appropriate parts of the rest of the function.
Test case included.
Fixes: See https://bugs.llvm.org/show_bug.cgi?id=45345
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77015
Files:
llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
llvm/test/CodeGen/AArch64/funclet-match-add-sub-stack.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77015.253428.patch
Type: text/x-patch
Size: 5441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200329/aadab44d/attachment-0001.bin>
More information about the llvm-commits
mailing list