[PATCH] D107646: [PowerPC] Fix the frame addresss computing return address for `__builtin_return_address`
Victor Huang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 6 07:36:24 PDT 2021
NeHuang created this revision.
NeHuang added reviewers: nemanjai, stefanp, PowerPC.
NeHuang added a project: LLVM.
Herald added subscribers: shchenz, kbarton, hiraditya.
NeHuang requested review of this revision.
When depth > 0, callee frame address is used to compute the return address of callee producing improper return address. This patch adds the fix to use caller frame address to compute the return address of callee.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D107646
Files:
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/2010-05-03-retaddr1.ll
llvm/test/CodeGen/PowerPC/retaddr_multi_levels.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107646.364483.patch
Type: text/x-patch
Size: 8467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210806/7ce55c9b/attachment.bin>
More information about the llvm-commits
mailing list