llvm/llvm-project
AMDGPU GlobalISel fails on select of G_UBSANTRAP
Aberta
#131.740 aberto em 18 de mar. de 2025
backend:AMDGPUgood first issuellvm:globalisel
Métricas do repositório
- Stars
- (26.378 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
https://godbolt.org/z/6PzeExK4f
; RUN: llc -mtriple=amdgcn-amd-amdhsa -global-isel < %s
; LLVM ERROR: cannot select: G_UBSANTRAP 0 (in function: ubsan_trap)
define void @ubsan_trap() {
call void @llvm.ubsantrap(i8 0)
ret void
}
We already handle G_TRAP and G_DEBUGTRAP. ubsan isn't particularly special and should be able to follow