fallback: legalize: G_INVOKE_REGION_START

Run:main-d9924131a4-20261128-102057
Kind:fallback
Category:legalize: G_INVOKE_REGION_START
Occurrences:39 in 11 configs, 3 test files
Snippet from:dwarf-eh.ll @test1 via llvm-extract
Config:-mtriple=riscv32 --code-model=medium
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

declare void @throw_exception()

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

define void @test1() personality ptr @__gxx_personality_v0 {
entry:
  invoke void @throw_exception()
          to label %try.cont unwind label %lpad

lpad:                                             ; preds = %entry
  %0 = landingpad { ptr, i32 }
          catch ptr null
  %1 = extractvalue { ptr, i32 } %0, 0
  %2 = tail call ptr @__cxa_begin_catch(ptr %1)
  tail call void @__cxa_end_catch()
  br label %try.cont

try.cont:                                         ; preds = %lpad, %entry
  ret void
}

Reproduce:

llc -mtriple=riscv32 --code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 --code-model=medium -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: G_INVOKE_REGION_START (in function: test1)
warning: Instruction selection used fallback path for test1

Occurrences (39) (first 15):

InputFunctionConfig
dwarf-eh.lltest1-mtriple=riscv32 --code-model=medium
dwarf-eh.lltest1-mtriple=riscv32 --code-model=medium -relocation-model=pic
dwarf-eh.lltest1-mtriple=riscv32 --code-model=small
dwarf-eh.lltest1-mtriple=riscv32 --code-model=small -relocation-model=pic
dwarf-eh.lltest1-mtriple=riscv64 --code-model=medium
dwarf-eh.lltest1-mtriple=riscv64 --code-model=medium -relocation-model=pic
dwarf-eh.lltest1-mtriple=riscv64 --code-model=small
dwarf-eh.lltest1-mtriple=riscv64 --code-model=small -relocation-model=pic
exception-pointer-register.llcaller-mtriple=riscv32 -verify-machineinstrs
exception-pointer-register.llcaller-mtriple=riscv64 -verify-machineinstrs
miss-sp-restore-eh.llfoo-mtriple=riscv64 -mattr=+v,+m
dwarf-eh.0f65d8f4be.ll (mutant of dwarf-eh.ll)test1-mtriple=riscv32 --code-model=medium
dwarf-eh.210721f659.ll (mutant of dwarf-eh.ll)test1-mtriple=riscv64 --code-model=medium -relocation-model=pic
dwarf-eh.250892698f.ll (mutant of dwarf-eh.ll)test1-mtriple=riscv32 --code-model=small
dwarf-eh.38bdb1d98d.ll (mutant of dwarf-eh.ll)test1-mtriple=riscv32 --code-model=small

Generated 2026-11-29 14:49 UTC.