fallback: translate: call llvm.prefetch.p0
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.prefetch.p0 M |
| Occurrences: | 3 in 3 configs, 2 test files, 4 more counted only |
| Snippet from: | prefetch.eded483626.ll (mutant of prefetch.ll) @test_prefetch_write_locality_2 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+zihintpause,+zfinx -O3 -code-model=medium -verify-machineinstrs |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global ptr
; Function Attrs: nounwind
define void @test_prefetch_write_locality_2(ptr %a) #0 {
call void @llvm.prefetch.p0(ptr %a, i32 1, i32 2, i32 1)
%G = getelementptr ptr, ptr %a, i1 true
store ptr %G, ptr @G.1, align 8
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @llvm.prefetch.p0(ptr readonly captures(none), i32 immarg range(i32 0, 2), i32 immarg range(i32 0, 4), i32 immarg range(i32 0, 2)) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite) }
Reproduce:
llc -mtriple=riscv32 -mattr=+zihintpause,+zfinx -O3 -code-model=medium -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zihintpause,+zfinx -O3 -code-model=medium -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.prefetch.p0: ' call void @llvm.prefetch.p0(ptr %a, i32 1, i32 2, i32 1)' (in function: test_prefetch_write_locality_2)
warning: Instruction selection used fallback path for test_prefetch_write_locality_2
Occurrences (3):
| Input | Function | Config |
|---|
| prefetch.8f134fa1be.ll (mutant of prefetch.ll) | test_prefetch_instruction_locality_0 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zicbop,+zihintntl,+a,+zfinx -O2 |
| prefetch.c376fde08a.ll (mutant of prefetch.ll) | test_prefetch_instruction_locality_1 | -mtriple=riscv64 -mattr=+zicbop,+zfinx,+zicsr -O2 -code-model=medium -verify-machineinstrs |
| prefetch.eded483626.ll (mutant of prefetch.ll) | test_prefetch_write_locality_2 | -mtriple=riscv32 -mattr=+zihintpause,+zfinx -O3 -code-model=medium -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.