[all-commits] [llvm/llvm-project] df2213: [EHStreamer] Omit @LPStart when function has no la...

Rahman Lavaee via All-commits all-commits at lists.llvm.org
Mon Aug 15 17:10:05 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df2213f345475786731a2c3b2a121329f14e8950
  Author: Rahman Lavaee <rahmanl at google.com>
  Date:   2022-08-15 (Mon, 15 Aug 2022)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/EHStreamer.cpp
    A llvm/test/CodeGen/X86/gcc_except_table_bb_sections_nolpads.ll

  Log Message:
  [EHStreamer] Omit @LPStart when function has no landing pads

When no landing pads exist for a function, `@LPStart` is undefined and must be omitted.

EH table is generally not emitted for functions without landing pads, except when the personality function is uknown (`!isNoOpWithoutInvoke(classifyEHPersonality(Per))`). In that case, we must omit `@LPStart` even when machine function splitting is enabled.

Reviewed By: MaskRay

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

More information about the All-commits mailing list