fallback: legalize: G_INTRINSIC_W_SIDE_EFFECTS p0

Run:explore-04ca53e65f-20261014-114124
Kind:fallback
Category:legalize: G_INTRINSIC_W_SIDE_EFFECTS p0
Occurrences:80 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 (80) (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.004263eee2.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-musl
clear-cache.06e3a404be.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-gnu
clear-cache.0893277ffd.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-musl
clear-cache.196af26d6b.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-gnu
clear-cache.250f7fd4e1.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-musl
clear-cache.2a60cbbbc7.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-musl
clear-cache.2d18d89cca.ll (mutant of clear-cache.ll)foo-mtriple=riscv32
clear-cache.3019c29d23.ll (mutant of clear-cache.ll)foo-mtriple=riscv64
clear-cache.32b0829654.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-gnu
clear-cache.33e3108e69.ll (mutant of clear-cache.ll)foo-mtriple=riscv64
clear-cache.3856e8e689.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-musl
clear-cache.3961cde0b1.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-musl
clear-cache.3afffffea0.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-gnu
clear-cache.404f420ee3.ll (mutant of clear-cache.ll)foo-mtriple=riscv32
clear-cache.43c238364f.ll (mutant of clear-cache.ll)foo-mtriple=riscv64
clear-cache.4afd1ab551.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-gnu
clear-cache.4ba0fdc6de.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-gnu
clear-cache.58d12822e8.ll (mutant of clear-cache.ll)foo-mtriple=riscv32
clear-cache.5e191e85e3.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-musl
clear-cache.6d1a7141fb.ll (mutant of clear-cache.ll)foo-mtriple=riscv64
clear-cache.83598c92d2.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-musl
clear-cache.a06351886b.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-musl
clear-cache.b86efe0d60.ll (mutant of clear-cache.ll)foo-mtriple=riscv32
clear-cache.c45a40634d.ll (mutant of clear-cache.ll)foo-mtriple=riscv64
clear-cache.e08e1016da.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-gnu
clear-cache.ea58f39913.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-musl
clear-cache.ec710d3eb3.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-gnu
clear-cache.ece6c1d362.ll (mutant of clear-cache.ll)foo-mtriple=riscv32
clear-cache.f170490f44.ll (mutant of clear-cache.ll)foo-mtriple=riscv64-unknown-linux-gnu
clear-cache.fe23d58028.ll (mutant of clear-cache.ll)foo-mtriple=riscv32-unknown-linux-gnu
hwasan-check-memaccess.1505605ebd.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64 --relocation-model=pic
hwasan-check-memaccess.1aa05bc868.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64
hwasan-check-memaccess.2077aaf151.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64
hwasan-check-memaccess.40bad00e63.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64
hwasan-check-memaccess.4b9ce16f2b.ll (mutant of hwasan-check-memaccess.ll)f2-mtriple=riscv64 -mattr=+c -M no-aliases

Generated 2026-10-15 08:05 UTC.