[PATCH] D100290: [PowerPC] Don't probe in redzone
Kai Luo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 12 02:08:22 PDT 2021
lkail created this revision.
lkail added reviewers: jsji, PowerPC.
Herald added subscribers: shchenz, kbarton, hiraditya, nemanjai.
lkail requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
When `-fstack-clash-protection` is enabled and stack has to be realigned, some parts of redzone is written prior the probe, so probe might overwrite content already written in redzone. To avoid it, the implementation should skip redzone when probing. Safety is still guaranteed since write in redzone is considered to be free probe.
This fixes https://bugs.llvm.org/show_bug.cgi?id=49903.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D100290
Files:
llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
llvm/test/CodeGen/PowerPC/pr46759.ll
llvm/test/CodeGen/PowerPC/stack-clash-prologue.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100290.336775.patch
Type: text/x-patch
Size: 17483 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210412/4935ff49/attachment.bin>
More information about the llvm-commits
mailing list