crash: LLVM ERROR: cannot implicitly convert a scalable size to a fixed-width size in `TypeSize::operator ScalarTy()`

Run:main-04ca53e65f-20261014-113325
Kind:crash
Category:LLVM ERROR: cannot implicitly convert a scalable size to a fixed-width size in `TypeSize::operator ScalarTy()` NEW
Occurrences:3 in 3 configs, 2 test files
Snippet from:redundant-copy-from-tail-duplicate.ecd6d065ab.ll (mutant of redundant-copy-from-tail-duplicate.ll) @sum via llvm-extract + llvm-reduce
Config:-mtriple=riscv64 -mattr=+v
Local check:reproduces at 04ca53e65f
Compiler Explorer:https://godbolt.org/z/ddM6G4Mbb (llc-assertions-trunk, checked 2026-10-14 11:03 UTC): G reproduces

Snippet:

define ptr @sum(ptr %a, i32 %n) {
entry:
  %G1 = getelementptr <vscale x 8 x i1>, ptr %a, i32 %n
  ret ptr %G1
}

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv64 -mattr=+v -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*1340LLVM ERROR: cannot implicitly convert a scalable size to a fixed-width size in `TypeSize::operator ScalarTy()`
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
SelectionDAG (control)-mtriple=riscv64 -mattr=+v -global-isel=0013-

Reproduce:

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

Local llc output:

LLVM ERROR: cannot implicitly convert a scalable size to a fixed-width size in `TypeSize::operator ScalarTy()`
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0.	Program arguments: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+v -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* -o -
1.	Running pass 'Function Pass Manager' on module '<stdin>'.
2.	Running pass 'IRTranslator' on function '@sum'
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  llc       0x000055ff92b9a79b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x000055ff92b97641 llvm::sys::RunSignalHandlers() + 369
2  llc       0x000055ff92b9b21b
3  libc.so.6 0x00007f4239845330
4  libc.so.6 0x00007f423989ec0c pthread_kill + 284
5  libc.so.6 0x00007f423984527e gsignal + 30
6  libc.so.6 0x00007f42398288ff abort + 223
7  llc       0x000055ff92addbcd llvm::report_fatal_error(llvm::Twine const&, bool) + 429
8  llc       0x000055ff92adda16
9  llc       0x000055ff92addd1b
10 llc       0x000055ff94c631a6 llvm::IRTranslatorImpl::translateGetElementPtr(llvm::User const&, llvm::MachineIRBuilder&) + 2678
11 llc       0x000055ff94c6fb99 llvm::IRTranslatorImpl::translate(llvm::Instruction const&) + 889
12 llc       0x000055ff94c7251d llvm::IRTranslatorImpl::runOnMachineFunction(llvm::MachineFunction&, llvm::function_ref<llvm::GISelCSEInfo* ()>, bool, llvm::function_ref<llvm::AAResults* ()>, llvm::function_ref<llvm::BranchProbabilityInfo* ()>, llvm::function_ref<llvm::AssumptionCache* ()>, llvm::TargetLibraryInfo*, llvm::LibcallLoweringInfo const*, llvm::SSPLayoutInfo*) + 4253
13 llc       0x000055ff94c7350d llvm::IRTranslatorLegacy::runOnMachineFunction(llvm::MachineFunction&) + 733
14 llc       0x000055ff93161d2d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 653
15 llc       0x000055ff92ef1cd7 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
16 llc       0x000055ff92efa1d2 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
17 llc       0x000055ff92ef2a80 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
18 llc       0x000055ff92ba1df8 llcMain + 12056
19 llc       0x000055ff92add62f main + 63
20 libc.so.6 0x00007f423982a1ca
21 libc.so.6 0x00007f423982a28b __libc_start_main + 139
22 llc       0x000055ff92add525 _start + 37

Occurrences (3):

InputFunctionConfig
pr69586.4b2529f45d.ll (mutant of pr69586.ll)-mtriple=riscv64 -mattr=+m,+v,+xsfvcp -riscv-use-rematerializable-movimm=false
pr69586.86660ad4e3.ll (mutant of pr69586.ll)-mtriple=riscv64 -mattr=+m,+v,+xsfvcp --riscv-use-rematerializable-movimm=true
redundant-copy-from-tail-duplicate.ecd6d065ab.ll (mutant of redundant-copy-from-tail-duplicate.ll)-mtriple=riscv64 -mattr=+v

Generated 2026-10-15 08:05 UTC.