llvm/llvm-project

AMDGPU GlobalISel fails on select of G_UBSANTRAP

Ouverte

#131 740 ouverte le 18 mars 2025

 (5 commentaires) (0 réaction) (1 personne assignée)C++ (10 782 forks)batch import
backend:AMDGPUgood first issuellvm:globalisel

Métriques du dépôt

Stars
 (26 378 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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

Guide contributeur