[all-commits] [llvm/llvm-project] b8a8ef: [SafeStack] Make sure SafeStack does not break mus...

Xun Li via All-commits all-commits at lists.llvm.org
Tue Nov 10 20:46:27 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b8a8ef32762bfe02b10495595e578002b29c8dc8
      https://github.com/llvm/llvm-project/commit/b8a8ef32762bfe02b10495595e578002b29c8dc8
  Author: Xun Li <xun at fb.com>
  Date:   2020-11-10 (Tue, 10 Nov 2020)

  Changed paths:
    M llvm/lib/CodeGen/SafeStack.cpp
    A llvm/test/Transforms/SafeStack/X86/musttail.ll

  Log Message:
  -----------
  [SafeStack] Make sure SafeStack does not break musttail call contract

SafeStack instrumentation should not insert anything inbetween musttail call and return instruction.
For every ReturnInst that needs to be instrumented, we adjust the insertion point to the musttail call if exists.

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




More information about the All-commits mailing list