fallback: legalize: G_INTRINSIC_W_SIDE_EFFECTS p0,s32

Run:explore-04ca53e65f-20261014-114124
Kind:fallback
Category:legalize: G_INTRINSIC_W_SIDE_EFFECTS p0,s32
Occurrences:12 in 2 configs, 1 test files
Snippet from:eh-dwarf-cfa.ll @dwarf via llvm-extract
Config:-mtriple=riscv32
Local check:reproduces at 04ca53e65f
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 (12):

InputFunctionConfig
eh-dwarf-cfa.lldwarf-mtriple=riscv32
eh-dwarf-cfa.lldwarf-mtriple=riscv64
eh-dwarf-cfa.0ee9c6f497.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv32
eh-dwarf-cfa.1a2c2ff1e8.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv64
eh-dwarf-cfa.30ab0b61df.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv32
eh-dwarf-cfa.4ad8668f0d.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv64
eh-dwarf-cfa.a60f42d201.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv32
eh-dwarf-cfa.ab9ca38538.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv32
eh-dwarf-cfa.bbdca79f2e.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv32
eh-dwarf-cfa.d686ac79e0.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv64
eh-dwarf-cfa.d6eb8b4134.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv64
eh-dwarf-cfa.f3603a4fa9.ll (mutant of eh-dwarf-cfa.ll)dwarf-mtriple=riscv64

Generated 2026-10-15 08:05 UTC.