fallback: legalize: G_INTRINSIC_W_SIDE_EFFECTS p0,s64
| Run: | explore-04ca53e65f-20261014-114124 |
| Kind: | fallback |
| Category: | legalize: G_INTRINSIC_W_SIDE_EFFECTS p0,s64 |
| Occurrences: | 5 in 1 configs, 1 test files |
| Snippet from: | rv64-stackmap.ll @constantargs via llvm-extract |
| Config: | -mtriple=riscv64 |
| Local check: | reproduces at 04ca53e65f |
| 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 (5):
Generated 2026-10-15 08:05 UTC.