[PATCH] D135693: [WIP][RegisterScavenger][RISCV] Don't search for FrameSetup instrs if we were searching from Non-FrameSetup instrs
luxufan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 11 09:44:10 PDT 2022
StephenFan created this revision.
StephenFan added reviewers: MatzeB, arsenm, craig.topper, asb, jrtc27.
Herald added subscribers: sunshaoce, VincentWu, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
StephenFan requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay, wdng.
Herald added a project: LLVM.
Otherwise, the spill position may point to position where before
FrameSetup instructions. In which case, the spill instruction may store
to caller's frame since the stack pointer has not been adjustted.
Fixes https://github.com/llvm/llvm-project/issues/58286
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D135693
Files:
llvm/lib/CodeGen/RegisterScavenging.cpp
llvm/test/CodeGen/RISCV/pr58286.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135693.466843.patch
Type: text/x-patch
Size: 5600 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221011/7744779f/attachment.bin>
More information about the llvm-commits
mailing list