[all-commits] [llvm/llvm-project] 2e3755: StackProtector: ensure stack checks are inserted b...

Liqiang TAO via All-commits all-commits at lists.llvm.org
Fri Sep 16 07:25:40 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e37557fdeed381e8e790e20702ededb13c9cef3
      https://github.com/llvm/llvm-project/commit/2e37557fdeed381e8e790e20702ededb13c9cef3
  Author: Liqiang Tao <taolq at outlook.com>
  Date:   2022-09-16 (Fri, 16 Sep 2022)

  Changed paths:
    M llvm/lib/CodeGen/StackProtector.cpp
    M llvm/test/CodeGen/AArch64/stack-protector-musttail.ll
    M llvm/test/CodeGen/ARM/Windows/stack-protector-musttail.ll
    A llvm/test/CodeGen/X86/stack-protector-musttail.ll
    M llvm/test/CodeGen/X86/tailcc-ssp.ll

  Log Message:
  -----------
  StackProtector: ensure stack checks are inserted before the tail call

The IR stack protector pass should insert stack checks before the tail
calls not only the musttail calls. So that the attributes `ssqreq` and
`tail call`, which are emited by llvm-opt, could be both enabled by
llvm-llc.

Reviewed By: compnerd

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




More information about the All-commits mailing list