fallback: legalize: G_INTRINSIC_W_SIDE_EFFECTS p0,s32

Run:main-bc8218b282-20261015-074651
Kind:fallback
Category:legalize: G_INTRINSIC_W_SIDE_EFFECTS p0,s32
Occurrences:4 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 (4):

InputFunctionConfig
eh-dwarf-cfa.lldwarf-mtriple=riscv32
eh-dwarf-cfa.lldwarf-mtriple=riscv64
eh-dwarf-cfa.4cbb140666.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv32
eh-dwarf-cfa.851166a025.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv64

Generated 2026-10-15 08:05 UTC.