[PATCH] D99585: [X86] add dwarf information for loop stack probe

YangKeao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 30 06:02: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.

This patch only contains the implementation for 64-bit
architecture. Because `r11d` cannot be used in 32-bit
architecture and I don't know why (and in which step)
the r11d register is rewritten to work on 32-bit 😢, but it
doesn't cover dwarf annotation.

As discussed in D98789 <https://reviews.llvm.org/D98789>, we cannot find a register unconditionally
safe in 32-bit, so I left this problem for further discussion.
nagisa's D98999 <https://reviews.llvm.org/D98999> is an attemption to solve this problem.

Signed-off-by: YangKeao <keao.yang at yahoo.com>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99585

Files:
  llvm/lib/Target/X86/X86FrameLowering.cpp
  llvm/lib/Target/X86/X86FrameLowering.h
  llvm/test/CodeGen/X86/stack-clash-large.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99585.334129.patch
Type: text/x-patch
Size: 5443 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210330/0489b73b/attachment.bin>


More information about the llvm-commits mailing list