[all-commits] [llvm/llvm-project] 66813b: X86: Remove redundant SJLJ landing pad alignment i...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Sep 30 14:56:30 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66813bafefc24420a0a7f8fed0aef775f56c71a8
      https://github.com/llvm/llvm-project/commit/66813bafefc24420a0a7f8fed0aef775f56c71a8
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-09-30 (Wed, 30 Sep 2026)

  Changed paths:
    M llvm/lib/Target/X86/X86LFIRewritePass.cpp
    A llvm/test/CodeGen/X86/lfi-align-sjlj.ll

  Log Message:
  -----------
  X86: Remove redundant SJLJ landing pad alignment in X86LFIRewritePass (#227295)

X86LFIRewritePass separately scanned for blocks holding a call site's landing pad label. 
With SJLJ exception handling the dispatch block reaches those blocks through an indirect 
jump, and they are no longer marked as EH pads by the time this pass runs, so they would 
otherwise be missed.

EmitSjLjDispatchBlock puts those blocks in a jump table, so they are already aligned as jump 
table targets. Dropping it removes the use of the TargetOptions exception model field from 
this in preparation for its removal.

The new test checks the landing pad alignment, which was previously untested.

Co-authored-by: Claude Opus 5 <noreply at anthropic.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list