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

Run:main-bc8218b282-20261015-074651
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 bc8218b282
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       0x000055b91b85a54b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x000055b91b8573f1 llvm::sys::RunSignalHandlers() + 369
2  llc       0x000055b91b85afcb
3  libc.so.6 0x00007f6aefe45330
4  libc.so.6 0x00007f6aefe9ec0c pthread_kill + 284
5  libc.so.6 0x00007f6aefe4527e gsignal + 30
6  libc.so.6 0x00007f6aefe288ff abort + 223
7  llc       0x000055b91b79cc4d llvm::report_fatal_error(llvm::Twine const&, bool) + 429
8  llc       0x000055b91b79ca96
9  llc       0x000055b91b79cd9b
10 llc       0x000055b91d927056 llvm::IRTranslatorImpl::translateGetElementPtr(llvm::User const&, llvm::MachineIRBuilder&) + 2678
11 llc       0x000055b91d933ab9 llvm::IRTranslatorImpl::translate(llvm::Instruction const&) + 889
12 llc       0x000055b91d93643d 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       0x000055b91d93742d llvm::IRTranslatorLegacy::runOnMachineFunction(llvm::MachineFunction&) + 733
14 llc       0x000055b91be219ed llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 653
15 llc       0x000055b91bbb1d37 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
16 llc       0x000055b91bbba232 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
17 llc       0x000055b91bbb2ae0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
18 llc       0x000055b91b861ba8 llcMain + 12056
19 llc       0x000055b91b79c6af main + 63
20 libc.so.6 0x00007f6aefe2a1ca
21 libc.so.6 0x00007f6aefe2a28b __libc_start_main + 139
22 llc       0x000055b91b79c5a5 _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.