[all-commits] [llvm/llvm-project] 13b720: [win][x64] Re-use fixed object if multiple catchpa...

Daniel Paoliello via All-commits all-commits at lists.llvm.org
Mon Jul 14 15:06:53 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 13b720d255c48c67606fddeaf4abb1d496945c81
      https://github.com/llvm/llvm-project/commit/13b720d255c48c67606fddeaf4abb1d496945c81
  Author: Daniel Paoliello <danpao at microsoft.com>
  Date:   2025-07-14 (Mon, 14 Jul 2025)

  Changed paths:
    M llvm/lib/Target/X86/X86FrameLowering.cpp
    A llvm/test/CodeGen/WinEH/wineh-reuse-catch-alloca.ll

  Log Message:
  -----------
  [win][x64] Re-use fixed object if multiple catchpads use the same alloca for their catch objects (#147849)

Addresses
<https://github.com/llvm/llvm-project/pull/147421#discussion_r2191234968>
for x86

If more than one `catchpad ` uses the same `alloca` for their catch
objects, then we will allocate more than one object in the fixed area
resulting in wasted stack space.

As a follow up, Clang could be updated to re-use the same `alloca` for
all by-reference and by-pointer catch objects.



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