fallback: legalize: G_INTRINSIC_W_SIDE_EFFECTS p0,s64

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

Snippet:

define void @constantargs() {
entry:
  %0 = inttoptr i64 244837814094590 to ptr
  tail call void (i64, i32, ptr, i32, ...) @llvm.experimental.patchpoint.void(i64 1, i32 28, ptr %0, i32 0, i64 65535, i64 65536, i64 4294967295, i64 4294967296)
  ret void
}

declare void @llvm.experimental.patchpoint.void(i64 immarg, i32 immarg, ptr, i32 immarg, ...)

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.experimental.patchpoint.void), 1, 28, %1:_(p0), 0, %2:_(s64), %3:_(s64), %4:_(s64), %5:_(s64) (in function: constantargs)
warning: Instruction selection used fallback path for constantargs

Occurrences (8):

InputFunctionConfig
rv64-stackmap.llconstantargs-mtriple=riscv64
rv64-stackmap.llosrcold-mtriple=riscv64
rv64-stackmap.llpropertyWrite-mtriple=riscv64
rv64-stackmap.lljsVoidCall-mtriple=riscv64
rv64-stackmap.0e5eeacb12.ll (mutant of rv64-stackmap.ll)osrcold-mtriple=riscv64
rv64-stackmap.c8dba4d156.ll (mutant of rv64-stackmap.ll)osrcold-mtriple=riscv64
rv64-stackmap.c8dba4d156.ll (mutant of rv64-stackmap.ll)jsVoidCall-mtriple=riscv64
rv64-stackmap.da39c20745.ll (mutant of rv64-stackmap.ll)propertyWrite-mtriple=riscv64

Generated 2026-10-15 08:05 UTC.