fallback: legalize: G_INTRINSIC p0

Run:main-b577f07195-20261129-101839
Kind:fallback
Category:legalize: G_INTRINSIC p0
Occurrences:86 in 16 configs, 6 test files
Snippet from:stack-protector-target.ll @func via llvm-extract
Config:-mtriple=riscv64-android
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind sspreq
define void @func() #0 {
  %1 = alloca i32, align 4
  call void @capture(ptr %1)
  ret void
}

declare void @capture(ptr)

attributes #0 = { nounwind sspreq }

Reproduce:

llc -mtriple=riscv64-android -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64-android -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %6:_(p0) = G_INTRINSIC intrinsic(@llvm.thread.pointer) (in function: func)
warning: Instruction selection used fallback path for func

Occurrences (86) (first 15):

InputFunctionConfig
frameaddr-returnaddr.lltest_frameaddress_0-mtriple=riscv32 -verify-machineinstrs
frameaddr-returnaddr.lltest_frameaddress_2-mtriple=riscv32 -verify-machineinstrs
frameaddr-returnaddr.lltest_frameaddress_3_alloca-mtriple=riscv32 -verify-machineinstrs
frameaddr-returnaddr.lltest_returnaddress_0-mtriple=riscv32 -verify-machineinstrs
frameaddr-returnaddr.lltest_returnaddress_2-mtriple=riscv32 -verify-machineinstrs
frameaddr-returnaddr.lltest_frameaddress_0-mtriple=riscv64 -verify-machineinstrs
frameaddr-returnaddr.lltest_frameaddress_2-mtriple=riscv64 -verify-machineinstrs
frameaddr-returnaddr.lltest_frameaddress_3_alloca-mtriple=riscv64 -verify-machineinstrs
frameaddr-returnaddr.lltest_returnaddress_0-mtriple=riscv64 -verify-machineinstrs
frameaddr-returnaddr.lltest_returnaddress_2-mtriple=riscv64 -verify-machineinstrs
push-pop-popret.lluse_fp-mtriple=riscv32 -mattr=+zcmp -verify-machineinstrs
push-pop-popret.lluse_fp-mtriple=riscv32 -mattr=+zcmp,+save-restore -verify-machineinstrs
push-pop-popret.lluse_fp-mtriple=riscv32 -verify-machineinstrs
push-pop-popret.lluse_fp-mtriple=riscv64 -mattr=+zcmp -verify-machineinstrs
push-pop-popret.lluse_fp-mtriple=riscv64 -mattr=+zcmp,+save-restore -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.