[all-commits] [llvm/llvm-project] 61a236: [SjLjEHPrepare] Configure call sites correctly (#1...

Sergei Barannikov via All-commits all-commits at lists.llvm.org
Tue Nov 26 21:04:09 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 61a23646c977f5530829742fdf5b901b7d9815a2
      https://github.com/llvm/llvm-project/commit/61a23646c977f5530829742fdf5b901b7d9815a2
  Author: Sergei Barannikov <barannikov88 at gmail.com>
  Date:   2024-11-27 (Wed, 27 Nov 2024)

  Changed paths:
    M llvm/lib/CodeGen/SjLjEHPrepare.cpp
    M llvm/test/CodeGen/ARM/sjljehprepare-lower-empty-struct.ll
    A llvm/test/CodeGen/Generic/sjlj-eh-prepare.ll
    M llvm/test/CodeGen/VE/Scalar/builtin_sjlj_callsite.ll
    M llvm/test/CodeGen/VE/Scalar/builtin_sjlj_landingpad.ll
    M llvm/test/CodeGen/X86/indirect-branch-tracking-eh2.ll
    M llvm/test/CodeGen/X86/sjlj-eh.ll

  Log Message:
  -----------
  [SjLjEHPrepare] Configure call sites correctly (#117656)

After 9fe78db4, the pass inserts `store volatile i32 -1, ptr %call_site`
before all invoke instruction except the one in the entry block, which
has the effect of bypassing landing pads on exceptions.

When configuring the call site for a potentially throwing instruction
check that it is not `InvokeInst` -- they are handled by earlier code.



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