fallback: legalize: G_INTRINSIC_W_SIDE_EFFECTS p0,s32

Run:explore-bc8218b282-20261015-075519
Kind:fallback
Category:legalize: G_INTRINSIC_W_SIDE_EFFECTS p0,s32
Occurrences:8 in 2 configs, 1 test files
Snippet from:eh-dwarf-cfa.ll @dwarf via llvm-extract
Config:-mtriple=riscv32
Local check:reproduces at bc8218b282
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define void @dwarf() {
entry:
  %0 = call ptr @llvm.eh.dwarf.cfa(i32 0)
  call void @foo(ptr %0)
  ret void
}

declare void @foo(ptr)

; Function Attrs: nounwind
declare ptr @llvm.eh.dwarf.cfa(i32) #0

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %0:_(p0) = G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.eh.dwarf.cfa), %1:_(s32) (in function: dwarf)
warning: Instruction selection used fallback path for dwarf

Occurrences (8):

InputFunctionConfig
eh-dwarf-cfa.lldwarf-mtriple=riscv32
eh-dwarf-cfa.lldwarf-mtriple=riscv64
eh-dwarf-cfa.30686e03f5.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv64
eh-dwarf-cfa.33cb9ece16.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv32
eh-dwarf-cfa.92ecb0d138.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv32
eh-dwarf-cfa.9df2712e8a.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv32
eh-dwarf-cfa.ce56ba8768.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv64
eh-dwarf-cfa.e757710bc6.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv64

Generated 2026-10-15 08:05 UTC.