fallback: legalize: G_INTRINSIC_W_SIDE_EFFECTS p0

Run:main-04ca53e65f-20261014-105623
Kind:fallback
Category:legalize: G_INTRINSIC_W_SIDE_EFFECTS p0
Occurrences:54 in 12 configs, 5 test files
Snippet from:clear-cache.ll @foo via llvm-extract
Config:-mtriple=riscv32
Local check:reproduces at 04ca53e65f
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 (54) (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.163b14a8f0.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-musl
clear-cache.21b1520c1b.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-musl
clear-cache.43049afb81.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-musl
clear-cache.4bbaed6ba2.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-gnu
clear-cache.4fecc02835.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-gnu
clear-cache.60e5c8a557.ll (mutant of clear-cache.ll)foo-mtriple=riscv32
clear-cache.644edfc725.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-musl
clear-cache.64a3e74213.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-gnu
clear-cache.6aecfcf283.ll (mutant of clear-cache.ll)foo-mtriple=riscv32
clear-cache.70db8112ae.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-musl
clear-cache.71ccf00fb0.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-gnu
clear-cache.7b1ff269a3.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-gnu
clear-cache.9265fa89dd.ll (mutant of clear-cache.ll)foo-mtriple=riscv32
clear-cache.9be6ace06a.ll (mutant of clear-cache.ll)foo-mtriple=riscv64
clear-cache.a7271713d2.ll (mutant of clear-cache.ll)foo-mtriple=riscv64
clear-cache.b9ff80eebd.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-gnu
clear-cache.e1fcf9019b.ll (mutant of clear-cache.ll)foo-mtriple=riscv64
clear-cache.fcc6807c62.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-musl
hwasan-check-memaccess.1a9e629f0b.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64 -mattr=+c -M no-aliases
hwasan-check-memaccess.1c5124fb15.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64 --relocation-model=pic
hwasan-check-memaccess.6218a0437f.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64
hwasan-check-memaccess.6ae5998fde.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64
hwasan-check-memaccess.8002bf6c1d.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64
hwasan-check-memaccess.8343cc5e2d.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64 --relocation-model=pic
hwasan-check-memaccess.8baf746bfd.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64 -mattr=+c -M no-aliases
hwasan-check-memaccess.ac72cae018.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64 --relocation-model=pic
hwasan-check-memaccess.ae00fb745b.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64 -mattr=+c -M no-aliases
rv64-trampoline-cfi.0d40df5cfd.ll (mutant of rv64-trampoline-cfi.ll)test0-O0 -mtriple=riscv64-unknown-linux-gnu -mattr=+experimental-zicfilp -verify-machineinstrs
rv64-trampoline-cfi.2a24f1498d.ll (mutant of rv64-trampoline-cfi.ll)test0-O0 -mtriple=riscv64 -mattr=+experimental-zicfilp -verify-machineinstrs
rv64-trampoline-cfi.609dbafd78.ll (mutant of rv64-trampoline-cfi.ll)test0-O0 -mtriple=riscv64 -mattr=+experimental-zicfilp -verify-machineinstrs
rv64-trampoline-cfi.7d9d7afffc.ll (mutant of rv64-trampoline-cfi.ll)test0-O0 -mtriple=riscv64-unknown-linux-gnu -mattr=+experimental-zicfilp -verify-machineinstrs
rv64-trampoline-cfi.8dbb517de3.ll (mutant of rv64-trampoline-cfi.ll)test0-O0 -mtriple=riscv64-unknown-linux-gnu -mattr=+experimental-zicfilp -verify-machineinstrs
rv64-trampoline-cfi.eec2e87ad3.ll (mutant of rv64-trampoline-cfi.ll)test0-O0 -mtriple=riscv64 -mattr=+experimental-zicfilp -verify-machineinstrs
rv64-trampoline.07d5576bd5.ll (mutant of rv64-trampoline.ll)test0-O0 -mtriple=riscv64 -verify-machineinstrs
rv64-trampoline.6a0b2b1359.ll (mutant of rv64-trampoline.ll)test0-O0 -mtriple=riscv64-unknown-linux-gnu -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.