[AMDGPU][GlobalIsel] ICE: unable to lower arguments: void (i32)
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
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::LLVMContext&, std::__cxx11::basic_string, std::allocator>&) llc.cpp:0:0
#17 0x000060cd92610b6c main (/COD/LATEST/trunk/bin/llc+0x11b6c)
```
Bug found by @ElliotBLabs.
Contributor guide
Assessment
This issue has not been assessed yet.