llvm/llvm-project

[AMDGPU][GlobalIsel] ICE: unable to lower arguments: void (i32)

Open

#200.795 aberto em 1 de jun. de 2026

Ver no GitHub
 (10 comments) (0 reactions) (1 assignee)C++ (10.782 forks)batch import
backend:AMDGPUcrashgood first issuellvm:globalisel

Métricas do repositório

Stars
 (26.378 stars)
Métricas de merge de PR
 (Mesclagem média 1d 2h) (1.000 fundiu PRs em 30d)

Description

The following bitcode module triggers an internal compiler error for -global-isel -O1 in https://github.com/llvm/llvm-project/commit/f68ef5b4303de763ecf37fd57cbefc3891ee48c0.

Module: https://gist.github.com/mgcarrasco/7487ab0bcf8bbd7be854e1bcfe222bbf Reproducer: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -O1 -global-isel module.ll

Stack trace:

#10 0x00007c5f0eaa638a reportTranslationError(llvm::MachineFunction&, llvm::OptimizationRemarkEmitter&, llvm::OptimizationRemarkMissed&) IRTranslator.cpp:0:0
#11 0x00007c5f0eacc9c1 llvm::IRTranslator::runOnMachineFunction(llvm::MachineFunction&) (/mnt/COW/2026-06-01/trunk_23.0-0/bin/../lib/../lib/libLLVMGlobalISel.so.23.0git+0x1019c1)
#12 0x00007c5f1132633b llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) MachineFunctionPass.cpp:0:0
#13 0x00007c5f0fa50251 llvm::FPPassManager::runOnFunction(llvm::Function&) (/mnt/COW/2026-06-01/trunk_23.0-0/bin/../lib/libLLVMCore.so.23.0git+0x297251)
#14 0x00007c5f1007dc12 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) CallGraphSCCPass.cpp:0:0
#15 0x00007c5f0fa51250 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/mnt/COW/2026-06-01/trunk_23.0-0/bin/../lib/libLLVMCore.so.23.0git+0x298250)
#16 0x000060cd9261d79a compileModule(char**, llvm::SmallVectorImpl<llvm::PassPlugin>&, llvm::LLVMContext&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) llc.cpp:0:0
#17 0x000060cd92610b6c main (/COD/LATEST/trunk/bin/llc+0x11b6c)

Bug found by @ElliotBLabs.

Guia do colaborador