fallback: legalize: G_INTRINSIC_W_SIDE_EFFECTS p0

Run:explore-bc8218b282-20261015-075519
Kind:fallback
Category:legalize: G_INTRINSIC_W_SIDE_EFFECTS p0
Occurrences:59 in 12 configs, 5 test files
Snippet from:clear-cache.ll @foo via llvm-extract
Config:-mtriple=riscv32
Local check:reproduces at bc8218b282
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define void @foo(ptr %a, ptr %b) #0 {
  call void @llvm.clear_cache.p0(ptr %a, ptr %b)
  ret void
}

; Function Attrs: nounwind
declare void @llvm.clear_cache.p0(ptr, ptr) #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: G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.clear_cache), %0:_(p0), %1:_(p0) (in function: foo)
warning: Instruction selection used fallback path for foo

Occurrences (59) (first 50):

InputFunctionConfig
clear-cache.llfoo-mtriple=riscv32
clear-cache.llfoo-mtriple=riscv32-unknown-linux-gnu
clear-cache.llfoo-mtriple=riscv32-unknown-linux-musl
clear-cache.llfoo-mtriple=riscv64
clear-cache.llfoo-mtriple=riscv64-unknown-linux-gnu
clear-cache.llfoo-mtriple=riscv64-unknown-linux-musl
hwasan-check-memaccess.llf2-mtriple=riscv64
hwasan-check-memaccess.llf2-mtriple=riscv64 --relocation-model=pic
hwasan-check-memaccess.llf2-mtriple=riscv64 -mattr=+c -M no-aliases
rv64-stackmap.lldirectFrameIdx-mtriple=riscv64
rv64-stackmap.lllongid-mtriple=riscv64
rv64-trampoline-cfi.lltest0-O0 -mtriple=riscv64 -mattr=+experimental-zicfilp -verify-machineinstrs
rv64-trampoline-cfi.lltest0-O0 -mtriple=riscv64-unknown-linux-gnu -mattr=+experimental-zicfilp -verify-machineinstrs
rv64-trampoline.lltest0-O0 -mtriple=riscv64 -verify-machineinstrs
rv64-trampoline.lltest0-O0 -mtriple=riscv64-unknown-linux-gnu -verify-machineinstrs
clear-cache.0122b8b23a.ll (mutant of clear-cache.ll)foo-mtriple=riscv64
clear-cache.12f359e905.ll (mutant of clear-cache.ll)foo-mtriple=riscv32
clear-cache.13040db80b.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-gnu
clear-cache.25664a4031.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-gnu
clear-cache.2ea646b8e6.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-gnu
clear-cache.3bc2bf242c.ll (mutant of clear-cache.ll)foo-mtriple=riscv32
clear-cache.3c82f92f93.ll (mutant of clear-cache.ll)foo-mtriple=riscv64
clear-cache.546202a317.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-musl
clear-cache.5d70a81080.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-gnu
clear-cache.6cb2ae3819.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-gnu
clear-cache.8cb525b831.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-musl
clear-cache.c0ce7eba03.ll (mutant of clear-cache.ll)foo-mtriple=riscv32
clear-cache.c59e1b13a7.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-musl
clear-cache.d30a54a3fb.ll (mutant of clear-cache.ll)foo-mtriple=riscv64
clear-cache.e165ccda1b.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-musl
clear-cache.e9caa92799.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-musl
clear-cache.fadadaa267.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-gnu
clear-cache.ff400250a5.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-musl
hwasan-check-memaccess.3588f250de.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64
hwasan-check-memaccess.440fc14dfd.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64 -mattr=+c -M no-aliases
hwasan-check-memaccess.4600131e23.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64 --relocation-model=pic
hwasan-check-memaccess.5ce9a4b898.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64 --relocation-model=pic
hwasan-check-memaccess.5e1017e45f.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64
hwasan-check-memaccess.6dbfe67a09.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64 -mattr=+c -M no-aliases
hwasan-check-memaccess.d2ab78ef3a.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64 -mattr=+c -M no-aliases
hwasan-check-memaccess.e900aa5d6f.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64
hwasan-check-memaccess.ffc970bb13.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64 --relocation-model=pic
rv64-stackmap.da39c20745.ll (mutant of rv64-stackmap.ll)directFrameIdx-mtriple=riscv64
rv64-trampoline-cfi.00d38cffe8.ll (mutant of rv64-trampoline-cfi.ll)test0-O0 -mtriple=riscv64-unknown-linux-gnu -mattr=+experimental-zicfilp -verify-machineinstrs
rv64-trampoline-cfi.11edd81d3e.ll (mutant of rv64-trampoline-cfi.ll)test0-O0 -mtriple=riscv64-unknown-linux-gnu -mattr=+experimental-zicfilp -verify-machineinstrs
rv64-trampoline-cfi.167b439de1.ll (mutant of rv64-trampoline-cfi.ll)test0-O0 -mtriple=riscv64 -mattr=+experimental-zicfilp -verify-machineinstrs
rv64-trampoline-cfi.2d599a97b1.ll (mutant of rv64-trampoline-cfi.ll)test0-O0 -mtriple=riscv64-unknown-linux-gnu -mattr=+experimental-zicfilp -verify-machineinstrs
rv64-trampoline-cfi.308d5dde7b.ll (mutant of rv64-trampoline-cfi.ll)test0-O0 -mtriple=riscv64 -mattr=+experimental-zicfilp -verify-machineinstrs
rv64-trampoline-cfi.45f63b4411.ll (mutant of rv64-trampoline-cfi.ll)test0-O0 -mtriple=riscv64 -mattr=+experimental-zicfilp -verify-machineinstrs
rv64-trampoline-cfi.97e17edbd8.ll (mutant of rv64-trampoline-cfi.ll)test0-O0 -mtriple=riscv64 -mattr=+experimental-zicfilp -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.