[PATCH] D134495: [X86] Use BuildStackAdjustment in stack probes

Josh Stone via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 22 15:42:22 PDT 2022


cuviper created this revision.
cuviper added a reviewer: serge-sans-paille.
Herald added subscribers: pengfei, hiraditya.
Herald added a project: All.
cuviper requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This has the advantage of dealing with live EFLAGS, using LEA instead of
SUB if needed to avoid clobbering. That also respects feature "lea-sp".

We could allow unrolled stack probing from blocks with live-EFLAGS, if
canUseAsEpilogue learns when emitStackProbeInlineGeneric will be used.

Depends on D134494 <https://reviews.llvm.org/D134494>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134495

Files:
  llvm/lib/Target/X86/X86FrameLowering.cpp
  llvm/test/CodeGen/X86/probe-stack-eflags.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134495.462340.patch
Type: text/x-patch
Size: 7464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220922/fd55fb68/attachment.bin>


More information about the llvm-commits mailing list