[all-commits] [llvm/llvm-project] f2c6bf: Fix interaction between stack alignment and inline...

serge-sans-paille via All-commits all-commits at lists.llvm.org
Fri Oct 2 07:52:18 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f2c6bfa350de142e4d63808d03335f69bd136d6a
      https://github.com/llvm/llvm-project/commit/f2c6bfa350de142e4d63808d03335f69bd136d6a
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2020-10-02 (Fri, 02 Oct 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86FrameLowering.cpp
    M llvm/lib/Target/X86/X86FrameLowering.h
    A llvm/test/CodeGen/X86/stack-clash-large-large-align.ll
    R llvm/test/CodeGen/X86/stack-clash-no-free-probe.ll
    A llvm/test/CodeGen/X86/stack-clash-small-alloc-medium-align.ll
    A llvm/test/CodeGen/X86/stack-clash-small-large-align.ll

  Log Message:
  -----------
  Fix interaction between stack alignment and inline-asm stack clash protection

As reported in https://github.com/rust-lang/rust/issues/70143 alignment is not
taken into account when doing the probing. Fix that by adjusting the first probe
if the stack align is small, or by extending the dynamic probing if the
alignment is large.

Differential Revision: https://reviews.llvm.org/D84419




More information about the All-commits mailing list