[all-commits] [llvm/llvm-project] 098003: Handle CET for -exception-model sjlj

xiangzh1 via All-commits all-commits at lists.llvm.org
Sun Apr 19 20:14:34 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0980038a5e449a669727f2fbf403e843c1dc1018
      https://github.com/llvm/llvm-project/commit/0980038a5e449a669727f2fbf403e843c1dc1018
  Author: Xiang1 Zhang <xiang1.zhang at intel.com>
  Date:   2020-04-20 (Mon, 20 Apr 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86IndirectBranchTracking.cpp
    M llvm/test/CodeGen/X86/indirect-branch-tracking-eh.ll
    A llvm/test/CodeGen/X86/indirect-branch-tracking-eh2.ll

  Log Message:
  -----------
  Handle CET for -exception-model sjlj

Summary:
In SjLj exception mode, the old landingpad BB will create a new landingpad BB and use indirect branch jump to the old landingpad BB in lowering.
So we should add 2 endbr for this exception model.

Reviewers: hjl.tools, craig.topper, annita.zhang, LuoYuanke, pengfei, efriedma

Reviewed By: LuoYuanke

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list