fallback: select: G_GLOBAL_VALUE p0

Run:main-d9924131a4-20261128-102057
Kind:fallback
Category:select: G_GLOBAL_VALUE p0
Occurrences:246 in 28 configs, 11 test files
Snippet from:tls-models.ll @f1 via llvm-extract
Config:-mtriple=riscv32
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@unspecified = external thread_local global i32

; Function Attrs: nounwind
define ptr @f1() #0 {
entry:
  ret ptr @unspecified
}

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: cannot select: %0:gprb(p0) = G_GLOBAL_VALUE @unspecified (in function: f1)
warning: Instruction selection used fallback path for f1

Occurrences (246) (first 15):

InputFunctionConfig
codemodel-lowering.lllower_global-mtriple=riscv64 -mattr=+f,+zfh -target-abi=lp64f -code-model=large -verify-machineinstrs
codemodel-lowering.lllower_blockaddress-mtriple=riscv64 -mattr=+f,+zfh -target-abi=lp64f -code-model=large -verify-machineinstrs
codemodel-lowering.lllower_extern_weak-mtriple=riscv64 -mattr=+f,+zfh -target-abi=lp64f -code-model=large -verify-machineinstrs
codemodel-lowering.lllower_global_half-mtriple=riscv64 -mattr=+f,+zfh -target-abi=lp64f -code-model=large -verify-machineinstrs
emutls.llget_external_x-mtriple=riscv32 -emulated-tls -relocation-model=pic
emutls.llget_y-mtriple=riscv32 -emulated-tls -relocation-model=pic
emutls.llget_internal_z-mtriple=riscv32 -emulated-tls -relocation-model=pic
emutls.llget_external_x-mtriple=riscv64 -emulated-tls -relocation-model=pic
emutls.llget_y-mtriple=riscv64 -emulated-tls -relocation-model=pic
emutls.llget_internal_z-mtriple=riscv64 -emulated-tls -relocation-model=pic
fold-addi-loadstore.llload_tl_4-mtriple=riscv32 -verify-machineinstrs
fold-addi-loadstore.llload_tl_8-mtriple=riscv32 -verify-machineinstrs
fold-addi-loadstore.llload_tl_4-mtriple=riscv32 -verify-machineinstrs -code-model=medium
fold-addi-loadstore.llload_tl_8-mtriple=riscv32 -verify-machineinstrs -code-model=medium
fold-addi-loadstore.llload_tl_4-mtriple=riscv32 -verify-machineinstrs -mattr=+xqcili<

Generated 2026-11-29 14:49 UTC.