summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/funclet-match-add-sub-stack.ll
Commit message (Collapse)AuthorAgeFilesLines
* [AArch64] Fix mismatch in prologue and epilogue for funclets on WindowsDaniel Frampton2020-06-251-0/+62
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. Fixes https://bugs.llvm.org/show_bug.cgi?id=45345 Differential Revision: https://reviews.llvm.org/D77015 (cherry picked from commit 522b4c4b88a5606b0074926e8658e7fede97c230)
OpenPOWER on IntegriCloud