[PATCH] D98789: [PEI] add dwarf information for stack probe

YangKeao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 17 09:14:29 PDT 2021


YangKeao created this revision.
Herald added subscribers: pengfei, hiraditya.
YangKeao requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

While probing stack, the stack register is moved without
dwarf information, which could cause panic if unwind the
backtrace at that point. This commit add dwarf information
for these operation, and use r11 (instead of rsp) to iterate
over pages to probe.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98789

Files:
  llvm/lib/Target/X86/X86FrameLowering.cpp
  llvm/lib/Target/X86/X86FrameLowering.h
  llvm/test/CodeGen/X86/stack-clash-large-large-align.ll
  llvm/test/CodeGen/X86/stack-clash-large.ll
  llvm/test/CodeGen/X86/stack-clash-medium-natural-probes-mutliple-objects.ll
  llvm/test/CodeGen/X86/stack-clash-medium-natural-probes.ll
  llvm/test/CodeGen/X86/stack-clash-medium.ll
  llvm/test/CodeGen/X86/stack-clash-small-large-align.ll
  llvm/test/CodeGen/X86/stack-clash-small.ll
  llvm/test/CodeGen/X86/stack-clash-unknown-call.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98789.331285.patch
Type: text/x-patch
Size: 14521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210317/2c0651cb/attachment.bin>


More information about the llvm-commits mailing list