fallback: translate: alloca

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: alloca M
Occurrences:3 in 2 configs, 1 test files, 8 more counted only
Snippet from:calling-conv-ilp32-ilp32f-ilp32d-common.04921f2814.ll (mutant of calling-conv-ilp32-ilp32f-ilp32d-common.ll) @caller_large_struct via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -frame-pointer=all -mattr=+zhinx -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

%struct.large = type { i32, i32, i32, i32 }

; Function Attrs: nounwind
declare i32 @callee_large_struct(ptr byval(%struct.large) align 4) #0

; Function Attrs: nounwind
define i32 @caller_large_struct() #0 {
  %ls = alloca %struct.large, align 8
  store i32 1, ptr %ls, align 4
  %b = getelementptr inbounds %struct.large, ptr %ls, i32 0, i32 1
  store i32 2, ptr %b, align 4
  %c = getelementptr inbounds %struct.large, ptr %ls, i32 0, i32 2
  %L1 = load i64, ptr %c, align 4
  %G = getelementptr <4 x i32>, ptr %c, i64 %L1
  store i32 3, ptr %c, align 4
  store i32 4, ptr %G, align 4
  %1 = call i32 @callee_large_struct(ptr byval(%struct.large) align 4 %ls)
  ret i32 %1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -frame-pointer=all -mattr=+zhinx -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -frame-pointer=all -mattr=+zhinx -O0 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: alloca: '  %ls = alloca %struct.large, align 8' (in function: caller_large_struct)
warning: Instruction selection used fallback path for caller_large_struct

Occurrences (3):

InputFunctionConfig
calling-conv-ilp32-ilp32f-ilp32d-common.04921f2814.ll (mutant of calling-conv-ilp32-ilp32f-ilp32d-common.ll)caller_large_struct-mtriple=riscv32 -verify-machineinstrs -frame-pointer=all -mattr=+zhinx -O0
calling-conv-ilp32-ilp32f-ilp32d-common.04921f2814.ll (mutant of calling-conv-ilp32-ilp32f-ilp32d-common.ll)caller_large_struct_ret-mtriple=riscv32 -verify-machineinstrs -frame-pointer=all -mattr=+zhinx -O0
calling-conv-ilp32-ilp32f-ilp32d-common.ae46fd0e0c.ll (mutant of calling-conv-ilp32-ilp32f-ilp32d-common.ll)caller_large_struct_ret-mtriple=riscv32 -verify-machineinstrs -frame-pointer=all -target-abi ilp32d -mattr=+zfinx -O2

Generated 2026-11-29 14:49 UTC.